@puffanime · Post #1606 · 29.03.2025 г., 13:03
#SBR ➿➿➿➿➿➿➿➿➿
Hashtags
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
Пребарај: #sbr
@puffanime · Post #1606 · 29.03.2025 г., 13:03
#SBR ➿➿➿➿➿➿➿➿➿
Hashtags
@venturevillagewall · Post #4337 · 08.03.2025 г., 07:00
US to Build Strategic Bitcoin Reserve The U.S. plans to actively increase its Bitcoin reserves through methods like issuing Bitcoin bonds and selling gold from government reserves. Trade Secretary Howard Lutnick is spearheading this initiative. This move introduces a Strategic Bitcoin Reserve (SBR), solidifying Bitcoin’s status as a strategic asset and initiating a global competition among countries for Bitcoin holdings. For the first time, the actual amount of Bitcoin held by the U.S. will be officially disclosed, as the current estimates are deemed speculative. The U.S. aims to surpass China, which currently leads with 194,000 BTC. #Bitcoin#BTC#Crypto#US#Finance#Investment#Blockchain#Trading#Economy#DigitalAssets#SBR#Innovation#Markets#Tech#Assets#Estimates#Competition#Global
@venturevillagewall · Post #4100 · 08.02.2025 г., 16:00
U.S. States Embrace Bitcoin Reserves A surge in U.S. states pursuing legislation for strategic bitcoin reserves highlights increasing institutional interest in cryptocurrency. 15 states, including Alabama, Arizona, Florida, and Texas, are taking steps to incorporate bitcoin into financial strategies, aimed at attracting businesses and enhancing economic stability. The federal conversation on a national reserve is beginning, as states like Arizona and Utah are closest to legislative success. This movement reflects a broader trend recognizing bitcoin's potential as a financial tool. #Bitcoin#Crypto#Finance#Legislation#Investment#Blockchain#Arizona#Texas#Alabama#EconomicStability#PublicFunds#DigitalAssets#Utah#Kentucky#InstitutionalInterest#VC#SBR#MarketTrends#FinancialInnovation