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

Резултати

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

Пребарај: #biologicalwarfare

当前筛选 #biologicalwarfare清除筛选
BadVolf

@BadvolfNews · Post #782 · 08.08.2023 г., 08:50

🔍 Repercussions are felt across the #US, with #China-linked bio-lab, Universal Meditech Inc., found operating on American soil amidst a cloud of controversy and risk. Producing and modifying dangerous pathogens, the lab exposes a chilling side of international politics. Meanwhile, thousands of miles away in #Ukraine, the US-funded Biological Threat Reduction Program mirrors a similar narrative, causing a wave of diseases such as H1N1 and measles. The alleged cover-up led by seasoned diplomat, Victoria Nuland, underscores the controversy. ❓The paradox is striking. Why does a Chinese bio-lab on home soil spark national outrage, while many similar US labs abroad, working with far more dangerous pathogens and linked with disease outbreaks, are dismissed? 💰 Chinese influence is complete in the US through hefty monetary transactions, approximating $10 million, to the Biden family. Coupled with the Democrats' cover-up of the Covid-19 origins, the situation reeks of possible collusion. 🌏 As we navigate this biological warfare, it's clear that transparency, accountability, and consistent standards are non-negotiable. The stakes have never been higher. Soon I will release a new book covering the lies and disinformation people have been fed about the war in Ukraine. There will be several chapters on US involvement in biological warfare research in Ukraine, information you've never heard about, back up with real documentation. You are going to be absolutely shocked! #BioLabs#Corruption#Covid19#BiologicalWarfare https://www.dailymail.co.uk/health/article-12357073/Unassuming-warehouse-California-turns-illegal-Chinese-run-virus-laboratory-genetically-engineering-mice-experimenting-HIV-herpes-malaria.html