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

Резултати

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

Пребарај: #pantera

当前筛选 #pantera清除筛选

🎉Catizen x Zircuit Launchpool is Live We're excited to announced launch Zircuit (ZRC) as the inaugural project on the Catizen Launchpool!🎆🪙 How to Earn ZRC? 💰 Stake CATI and Cats to Earn ZRC: Zircuit is an AI-secured, Zero-Knowledge Layer 2 solution, fully #EVM-compatible, and supported by #BinanceLabs, #Pantera, #DragonflyCapital, among others. With $1.8B in TVL and a new liquidity hub, early adopters are in for a rewarding journey! Launchpool Details: • Period: 2024-10-28 00:00 (UTC) to 2024-11-04 00:00 (UTC) • Token Name: $ZRC • Total Supply: 10,000,000,000 ZRC • Token Rewards: ≈$1,500,000 in ZRC • Launchpool Allocation: 8,333,333 ZRC Pool Information 🪙CATI Pool: • Reward Proportion: 85% • Reward Amount: $1,275,000 in ZRC • Stake Range: 1 to 2000 CATI • Settlement: Every hour based on staked CATI share 😺Cat Pool: • Reward Proportion: 15% • Reward Amount: $225,000 in ZRC • Eligibility: Cats above level 300 only • Settlement: Hourly, with levels converted to USD for calculations 🐾Don’t miss out on this incredible chance to grow your rewards with Zircuit! This is just the beginning of their ambitious plan to enhance CATI token value✨ #TON#CATI#Pool#Zircuit

Crypto M - Crypto News

@CryptoM · Post #64656 · 09.04.2026 г., 12:44

🚀 BitMine Immersion Technologies Expands Stock Buyback Program to $4 Billion BitMine Immersion Technologies has announced its official transition to trading on the New York Stock Exchange main board, ceasing its activities on NYSE American. According to Foresight News, the company has also expanded its stock buyback program, increasing the authorized total from $1 billion to $4 billion. As of April 6, 2026, BitMine holds approximately 4.803 million ETH, representing 3.98% of the total Ethereum supply, achieving over 79% of its 'Alchemy of 5%' target. The company's combined holdings of cryptocurrency and cash amount to approximately $11.4 billion. Institutional investors include Cathie Wood from ARK, Pantera, and Galaxy Digital. #BitMine#ImmersionTechnologies#StockBuyback#NYSE#Ethereum#Cryptocurrency#ARK#Pantera#GalaxyDigital#Finance#ETH

Venture Village Wall 🦄

@venturevillagewall · Post #3743 · 29.12.2024 г., 10:00

Bitcoin Price Peak Expected in 2025 The founder of Pantera, whose Bitcoin fund saw a staggering 130,000% return, forecasts August 2025 as the peak for this cycle, anticipating a bull market in 2025 followed by a decline in 2026. He believes Bitcoin could increase tenfold over the next 5-10 years. Meanwhile, in mining news, Foundry USA Pool mistakenly refunded an erroneous transaction fee of 8.18 BTC (about $777,000), which was 91,127 times higher than normal. Additionally, Volatility Shares has applied to launch futures-based Solana ETFs, signaling potential market interest despite the absence of a current trading platform for these products. #Bitcoin#Pantera#Crypto#ETF#Solana#Mining#Forecast#BullMarket#BearMarket#Foundry#VolatilityShares#BTC#CryptoNews#Investing#MarketTrends#Blockchain#TransactionFee#Finance#Cryptocurrency #2025 #2026

Venture Village Wall 🦄

@venturevillagewall · Post #4156 · 15.02.2025 г., 04:00

Milei Denies Connection to LIBRA Token Javier Milei claims he has no ties to the $LIBRA token, indicating he was unaware of it. Reports emerge of insider trading linked to LIBRA, amounting to over $20 million in profits before and after a key tweet. Meanwhile, the Wisconsin Pension Fund raises its Bitcoin holdings to $321 million, while the National Bank of Canada adopts a bearish stance, exercising a sell option on Bitcoin ETF shares worth over $1.3 million. 🔗 More details: - Milei denied connections - Senate investigates Pantera Capital - Insider trading profits from LIBRA - LIBRA price drop and withdrawals - Wisconsin Pension Fund's Bitcoin increase - National Bank of Canada's Bitcoin sell option #Milei#LIBRA#Crypto#Bitcoin#Pantera#Investigation#CEX#TaxLaws#Wisconsin#NationalBank#SEC#Bearish#ETF#ArkInvest#CapitalGains#MarketTrends#Profit#Trading#USDC#SOL

Мирослава Карпович

@m1r0slavakarpovich · Post #1131 · 29.07.2023 г., 15:48

ождливо 😂 Дорогие Женщины! Заброды нам в помощь🙏🏻 Дорогие Мужчины! Мы в забродах Вам в радость😂 Образ нафантазировала от и до, и в кадре воплотила -очень экстравагантная @terekhova_anastasiaa🧨🔪🖤 Белье @oh_eske💋 Бильярдные залы от @dalifotostudio🎱 #moodoftheday#photooftheday#photography#littlemiho#sincity#vintage#coat#lady#blackmamba#tiger#pantera#billiards#fashion#saturdaynight#weekend#love#fire#actress#model#legslegslegs#womenstyle#cinematography #🔞#hot#chica#ричбичлайф