@wall_amv · Post #8761 · 23.04.2024 г., 07:27
#anime #art #Mushoku_Tensei #Eris #Fan_art #AnimWorld @Wall_Amv
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
Пребарај: #eris
@wall_amv · Post #8761 · 23.04.2024 г., 07:27
#anime #art #Mushoku_Tensei #Eris #Fan_art #AnimWorld @Wall_Amv
@cosmomyst · Post #253 · 10.09.2025 г., 20:11
🪐 The distance between the Sun and the dwarf planet Eris, located in the outer reaches of our solar system, can stretch as far as 14.6 billion kilometers—almost 100 times farther than the Earth-Sun distance. Eris takes over 557 Earth years to complete a single orbit, highlighting just how staggeringly vast the stretches of space are beyond Neptune in the icy realm known as the Kuiper Belt. ✨ #spacedistances⚡#eris⚡#kuiperbelt⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries
@badvolfnews · Post #940 · 26.09.2023 г., 21:55
⚠️#ALARM⚠️#BreakingNews⚡️#France🇫🇷 #francophonie#Switzerland#Africa #France#Population in great #Danger⚡️ #Pfizer#CovidPsyOps#Documents#Revealtions#Disclosure#Website#Truth#Veritee#Action#Genocide#Eris #NATO is #using France 🇫🇷 as a #testingground. #Hackers have probably hacked the server of NATO's Scientific Collaboration support office in #Paris and published #Secret⚠️#NATO documents. These documents reveal extremely shocking facts, namely: the low efficacy of the Pfizer vaccine against the new strain of #Omicron, the high risk of embryonic developmental pathologies and cardiovascular diseases following injection of the vaccine, and NATO's implementation of dangerous experiments in the heart of Paris and the surrounding area. https://x.com/Najadi4Justice/status/1706713373344223516?s=20