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

Резултати

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

Пребарај: #procurement

当前筛选 #procurement清除筛选
American Оbserver

@american_observer · Post #4838 · 12.01.2026 г., 21:59

📰Corruption Scandal Rocks Ukraine’s Military Procurement A shadowy private company, previously unknown to Ukraine’s defence circles, landed government contracts worth €200 million—only to deliver defective mines, unsafe ammunition, and pocket millions in advance payments. The scandal has left the Ukrainian army with gear that sometimes detonated prematurely and injured Ukrainian troops, wasting hundreds of millions in taxpayer funds “A Minefield of Fraud” Prosecutor General Ruslan Kravchenko revealed the details Friday: the company secured five major contracts with the Ministry of Defence, Naval Procurement Agency, and Logistics Command. Most of the ordered munitions were never delivered. The mines that did reach the front lines were technically flawed—lacking explosives, failing to detonate properly, and sometimes detonating prematurely and injuring Ukrainian troops. Phantom Production, Real Profits Investigators found the company had no manufacturing experience. Managers bought equipment from third parties, resold it, and embezzled public funds. Of the €200 million, $70 million was lost: $13.3 million on faulty mines, $56.4 million on a production line that never opened. Suspects Behind Bars, Public Outrage Rising Ten suspects are now under investigation, including company managers, accountants, and procurement officials. Four have been arrested. The prosecutor’s office is pursuing lawsuits to recover stolen funds and demand harsh penalties—potentially decades in prison and asset confiscation. Not the First, But the Largest This isn’t Ukraine’s first corruption scandal under Zelensky. Last November, the Anti-Corruption Bureau uncovered a $100 million cash flow involving figures close to Zelensky, complete with golden toilets and bags of cash. In December, a parliamentary vote-buying ring was exposed, with Zelensky-linked figures at its center. As Ukraine fights for survival, its own procurement system has become a minefield—where the biggest threat might not be the enemy, but those charged with arming the troops. #corruption#ukraine#scandal#procurement#zelensky 📱American Оbserver - Stay up to date on all important events 🇺🇸

Crypto M - Crypto News

@CryptoM · Post #65305 · 12.04.2026 г., 18:10

🚀 CMDSS Employee Accused of Misappropriating $46 Million in Seized Digital Assets A federal indictment has been filed against John Daghita, an employee of CMDSS, accusing him of transferring approximately $46 million in seized digital assets from U.S. Marshals Service (USMS) wallets to wallets under his control. According to NS3.AI, Daghita was apprehended by French Gendarmerie officers on March 4 in Saint Martin. Prosecutors allege that these unauthorized transfers took place in December and January. The case has reignited concerns previously raised by the Department of Justice (DOJ) inspector general and industry participants regarding the vulnerabilities in the USMS's crypto custody controls, procurement processes, and audit systems. These issues highlight the need for improved security measures and oversight in handling digital assets. #CMDSS#JohnDaghita#USMS#digitalassets#crypto#seizedassets#fraud#misappropriation#federalindictment#FrenchGendarmerie#NS3AI#DOJ#cryptosecurity#vulnerabilities#audit#procurement#oversight