TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #183 · 23 ное.

Python + bash Если вам часто требуется запускать shell команды из Python-кода, какой способ вы используете? Самый низкоуровневый это функция os.system(), либо os.popen(). Рекомендованный способ это subprocess.call(). Но это всё еще достаточно неудобно. Советую обратить своё внимание на очень крутую библиотеку sh. Что она умеет? 🔸 удобный синтаксис вызова команд как функций # os import os os.system("tar cvf demo.tar ~/") # subprocess import subprocess subprocess.call(['tar', 'cvf', 'demo.tar', '~/']) # sh import sh sh.tar('cvf', 'demo.tar', "~/") 🔸 простое создание функции-алиаса для длинной команды fn = sh.lsof.bake('-i', '-P', '-n') output = sh.grep(fn(), 'LISTEN') в этом примере также задействован пайпинг 🔸 удобный вызов команд от sudo with sh.contrib.sudo: print(ls("/root")) Такой запрос спросит пароль. Чтобы это работало нужно соответствующим способом настроить юзера. А вот вариант с вводом пароля через код. password = "secret" sudo = sh.sudo.bake("-S", _in=password+"\n") print(sudo.ls("/root")) Это не все фишки. Больше интересных примеров смотрите в документации. Специально для Windows💀 юзеров #libs#linux

Hashtags

Резултати

Пронајдени 17 слични објави

Пребарај: #proton

当前筛选 #proton清除筛选
Linuxgram 🐧

@linuxgram · Post #18608 · 28.04.2026 г., 22:27

📰 Proton Experimental and Proton 11 Beta updated to fix issues with the EA App Valve released a small tweak update to both Proton Experimental and the Proton 11 Beta, bringing in an update to help with the EA App.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/04/proton-experimental-and-proton-11-beta-updated-to-fix-issues-with-the-ea-app/ #proton

Hashtags

sudo recast

@sudo_recast · Post #341 · 11.07.2022 г., 17:47

#Proton Down - https://twitter.com/search?q=protonmail%20down&src=typed_query&f=live - https://twitter.com/ProtonSupport/status/1546545761512464385 - https://protonstatus.com/incidents/195

Hashtags

sudo recast

@sudo_recast · Post #337 · 09.07.2022 г., 12:41

> If you have been inactive on #Proton Mail for one year (12 months) or more, access to your account and all data associated with it may be removed. https://proton.me/support/inactive-accounts

Hashtags

Linuxgram 🐧

@linuxgram · Post #18715 · 08.05.2026 г., 21:21

📰 Proton Experimental gets fixes for Rocket League, Crimson Desert, Helldivers 2 and more Valve just launched the latest exciting upgrade for Proton Experimental, to ensure as many Windows games as possible run well on Linux / SteamOS machines.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/05/proton-experimental-gets-fixes-for-rocket-league-crimson-desert-helldivers-2-and-more/ #linux#proton

Linuxgram 🐧

@linuxgram · Post #18688 · 06.05.2026 г., 13:24

📰 VKD3D-Proton 3.0.1 Brings More Improvements For Direct3D 12 On Vulkan Hans-Kristian Arntzen of Valve's Linux graphics driver team announced the release today of VKD3D-Proton 3.0.1 for Direct3D 12 over the Vulkan API... 🔗 Source: https://www.phoronix.com/news/VKD3D-Proton-3.0.1 #linux#proton

Linuxgram 🐧

@linuxgram · Post #18623 · 30.04.2026 г., 08:40

📰Proton Experimental updated to get Crimson Desert working again on Linux / SteamOS A recent update to Crimson Desert has been causing problems on Linux / SteamOS with it not launching, so Valve patched Proton Experimental to fix it.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/04/proton-experimental-updated-to-get-crimson-desert-working-again-on-linux-steamos/ #linux#proton

Linuxgram 🐧

@linuxgram · Post #18518 · 21.04.2026 г., 21:04

📰 Proton Experimental upgraded to Proton 11 for better Linux gaming compatibility After releasing the big Proton 11 Beta to run more Windows games on Linux / SteamOS, Valve just upgraded Proton Experimental some more too.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/04/proton-experimental-upgraded-to-proton-11-for-better-linux-gaming-compatibility/ #linux#proton

Linuxgram 🐧

@linuxgram · Post #18580 · 27.04.2026 г., 08:04

📰D7VK v1.8 Continues Improving Legacy Direct3D Atop The Vulkan API D7VK as what began as an implementation of the Direct3D 7 API on top of the Vulkan API, based off DXVK as part of Steam Play (Proton) for D3D8 through D3D11 support, continues enhancing its legacy D3D API support that over time has stretched now from D3D7 to D3D3... 🔗 Source: https://www.phoronix.com/news/D7VK-1.8-Released #proton#steam

Linuxgram 🐧

@linuxgram · Post #18654 · 02.05.2026 г., 16:30

📰 Steam On Linux In April Pulled Back From Its Record High Marketshare Steam on Linux use in March had skyrocketed to 5.33%, a 3.1% boost month-over-month and easily the highest level we've seen Steam on Linux at since its inception more than a decade ago. This record growth came amid the ongoing success of the Steam Deck handheld and Steam Play (Proton) for enabling more Windows games to run well on Linux. The April numbers are in and the Linux gaming marketshare pulled back somewhat but still remaining healthy... 🔗 Source: https://www.phoronix.com/news/Steam-April-2026-Survey #linux#proton#steam

sudo recast

@sudo_recast · Post #260 · 05.06.2022 г., 19:59

#ProtonMail 啓用新的品牌名 #Proton 統一多項服務,意在構建隱私生態 https://www.wired.com/story/proton-mail-calendar-drive-vpn/ https://proton.me/news/updated-proton 新的設計風格相當輕浮。 #design

12
ПретходнаСтраница 1 од 2Следна