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,453 слични објави

Глобално пребарување

折腾实验室频道

@TossLabChannel · Post #277 · 29.11.2024 г., 15:43

#Docker#Windows#macOS#Linux#Nas#照片备份#照片迁移#ICloud 一键备份iCloud照片教程 iCloud Photos Downloader 是一个开源的 iCloud 命令行下载工具,支持复制、同步、迁移 3 个模式 同时支持 Live Photos、RAW图像,并具有自动去重、增量运行优化等功能 运行icloudpd有三种方法: 1 从GitHub 版本 下载您的平台的可执行文件并运行它 2 使用软件包管理器安装、更新,在某些情况下,运行( Docker 、 PyPI 、 AUR 、 npm ) 3 从源头开始构建和运行 📱项目地址:点击链接 via:geekshare ❤️不想错过每个我精心推荐内容,请打开 #频道通知,你的 #阅读#点赞#转发 便是我发帖的最大动力! 📢 群聊: @TossQL 🎈 频道: @TossQLChannel 本频道主要折腾分享 #青龙面板, #签到任务, #Docker容器, #VPS服务器, #Github项目

Linuxgram 🐧

@linuxgram · Post #18105 · 18.03.2026 г., 15:45

📰 Fedora Asahi Remix 43 Brings Fedora Linux 43 to Apple Silicon Macs Fedora Asahi Remix 43 delivers Fedora Linux 43 to Apple Silicon Macs with KDE Plasma 6.6 and GNOME 49 desktops. 🔗 Source: https://linuxiac.com/fedora-asahi-remix-43-brings-fedora-linux-43-to-apple-silicon-macs/ #gnome#kde#fedora#linux#plasma

Linuxgram 🐧

@linuxgram · Post #18676 · 05.05.2026 г., 12:43

📰Manjaro 26.1 Preview Released With GNOME 50, KDE Plasma 6.6 & Xfce 4.20 Options The preview release of the Arch Linux powered Manjaro 26.1 is now available for testing... 🔗 Source: https://www.phoronix.com/news/Manjaro-26.1-Preview #arch#gnome#kde#linux#plasma

Клавдий в ИБ

@cyberpoleshuk · Post #111 · 02.06.2024 г., 20:13

Хэш-теги для быстрого поиска контента (с июня 2024 года - до этого ручной поиск, сорри но пока так 🫡) Список по мере добавления чего-то нового будет обновляться👨‍💻 #a1 - the best Company #ai - все что касается ИИ #announcement - что-то лично хочу заявить #book - сам читаю и вам советую #blueteam - понравится защитникам #case - правда жизни #cis - любимый фреймфорк #cybercrime - мр*зи #dataleack - утечка данных #game - “Что наша жизнь? Игра!” #git- есть интересный репозитория #hack - взломы #film - и сериалы тоже что бы не писать портянку #law - юрилический или пан-юридический документ #lifehack - полезность #linux - про пингвинов тут #malaware - что-то написал про вредоносное ПО #microsoft - когда-то адекватная компания #news - что то связанное с новостной повесткой #post - мой материал #redteam - атакующие инструменты #report - хорошие отчеты #scam - “обмануть за 60 секунд” #tool - полезный инструмент #quote - сказал что то такое что самому понравилось или позаимствовал #windows - то, что часто атакуют

GitHub Trends

@githubtrending · Post #15567 · 17.03.2026 г., 11:30

#cplusplus#apple_silicon#bsd#c_plus_plus#cmake#floss#game#gplv2#json#linux#lua#macos_app#python#strategy#windows Widelands is a free, open-source real-time strategy game like Settlers II, where you lead a small clan to build roads, gather resources like wood and gold, manage four unique tribes, trade, or fight in single-player campaigns and multiplayer. Download it easily for Windows, Mac, or Linux, or compile from source with simple scripts and tools like CMake on various systems. This lets you enjoy deep, replayable empire-building fun at no cost, anytime with friends or AI. https://github.com/widelands/widelands

Linuxgram 🐧

@linuxgram · Post #18640 · 01.05.2026 г., 08:55

📰 Grml 2026.04 Linux Distro Is Out with Linux Kernel 6.19, Based on Debian 14 Forky Grml 2026.04 GNU/Linux distribution is now available for download based on Debian Testing/Forky and powered by Linux kernel 6.19. Here’s what’s new! 🔗 Source: https://9to5linux.com/grml-2026-04-linux-distro-is-out-with-linux-kernel-6-19-based-on-debian-14-forky #debian#distro#gnu#kernel#linux

GitHub Trends

@githubtrending · Post #14721 · 19.05.2025 г., 12:01

#python#cli#cti#cybersecurity#forensics#hacktoberfest#information_gathering#infosec#linux#osint#pentesting#python#python3#reconnaissance#redteam#sherlock#tools Sherlock is a powerful tool that helps you find social media accounts by username across over 400 networks. It's easy to use and works on many operating systems like macOS, Linux, and Windows. You can install it using methods like `pipx` or Docker, and then simply type the username you want to search for. Sherlock will show you where that username is used on different social media platforms. This tool is useful for gathering information quickly and can be run locally or even online through services like Apify. It saves time and effort in finding accounts across many platforms. https://github.com/sherlock-project/sherlock

Linuxgram 🐧

@linuxgram · Post #18768 · 13.05.2026 г., 06:14

📰 Malware found in Linux builds of Cemu Wii U emulator If you’ve downloaded the Cemu Wii U emulator for Linux from the project’s official GitHub in the past few weeks, bad news: it may have added malware to your system when you ran it. The team who develop the the open-source emulator recently discovered that both the Linux AppImage and ZIP package of Cemu 2.6 on Github were “compromised” packages containing malware. The Cemu Flatpak and installers for Windows and macOS are not affected. 🔗 Source: https://www.omgubuntu.co.uk/2026/05/cemu-linux-malware #appimage#flatpak#linux#opensource

Linuxgram 🐧

@linuxgram · Post #18280 · 02.04.2026 г., 08:12

📰 Netrunner 26 Released with XLibre Xserver, Based on Debian 13 “Trixie” Netrunner 26 GNU/Linux distribution is now available for download based on Debian GNU/Linux 13 “Trixie” and featuring the KDE Plasma 6.3.6 desktop environment with Linux kenrel 6.16. 🔗 Source: https://9to5linux.com/netrunner-26-released-with-xlibre-xserver-based-on-debian-13-trixie #kde#linux#gnu#debian#plasma

Linuxgram 🐧

@linuxgram · Post #18601 · 28.04.2026 г., 14:39

📰 Fedora Linux 44 Is Now Available for Download, Here’s What’s New Fedora Linux 44 distribution is now available for download powered by Linux kernel 6.19 and featuring the latest GNOME 50 and KDE Plasma 6.6 desktop environments, and many other enhancements. 🔗 Source: https://9to5linux.com/fedora-linux-44-is-now-available-for-download-heres-whats-new #fedora#gnome#kde#kernel#linux#plasma

Linuxgram 🐧

@linuxgram · Post #18095 · 17.03.2026 г., 19:44

📰 I tried openSUSE Tumbleweed, and it had me reconsidering my love for Fedora Okay, I admit it; I have a distro-hopping problem. It was only three months ago that I proudly declared that I had stopped jumping between Linux distros and settled on one, and yet the bug has bitten me once more. The weird thing is, this isn't even a 'the grass is greener on the other side' thing, because as far as I was concerned, my Fedora Kinoite-based grass was some of the greenest I had ever had. I suppose when you're given a buffet of... 🔗 Source: https://www.xda-developers.com/opensuse-tumbleweed-has-me-reconsidering-using-fedora/ #linux#opensuse#distro#fedora

新手核心

@xinshoucpu · Post #98 · 16.01.2026 г., 18:58

🔡Telegram绑定邮箱教程 🔡常见时态总结 🔡一个 Linux 教程学习网站 🔡熊猫速读是一个收集精品视频读书笔记或好书分享的网站! 🔡看看你或别人分享的链接有没有泄露社交账号 🔡城市租房生存指南 🔡Stellar - 每个人的独立博客 🔡自动封禁不受欢迎、吸血和异常的 BT 客户端 🔡动手学深度学习 第二版 🔡俄罗斯方块在线版 🔡专为Twitter用户设计,过滤恶意用户 🔡团发生严重数据泄露事故 🔡键盘模拟器搭配自己喜欢的颜色 🔡一款在线制作电子印章的工具 🔡一个超级简洁的天气预报服务,专为命令行爱好者设计 🔡手机号中间补齐工具😒 🔡阿衰全集PDF电子版 🔡和全球各地的网友一起在线pk吧,支持单人游戏、好友对战和全球匹配。有井字游戏,五子棋等小游戏 🔡一款图文并茂且生动的英语语法学习网站 🔡压缩包密码破解工具 🔡杜叔叔发了个全服公告,抨击各国收紧信息自由。 🔡全球知名的计算机取证及数据恢复软件 🔡123网盘文件解析 🔡Telegram 通行密钥全面上线 ➖➖➖➖➖➖➖➖➖➖➖➖➖➖ 1️⃣URL Scheme 大全,收集分享 2️⃣Messenger 信使:基于 WebGL 3D 的网页游戏,玩家扮演邮递员在一个 3D 小星球的城镇间漫步穿梭,完成送信任务。 3️⃣小游戏 大而全 4️⃣小区说:各大城市小区 凶宅 信息查询,购房不利因素查询。 5️⃣沉浸式翻译被爆泄露用户隐私,分享的快照被搜索引擎爬了。 6️⃣盗版动漫网站“樱花动漫”运营者被判有期徒刑2年3个月,罚金1.5万元 7️⃣一个网警的心法教学-P站写色文发黄图到底安不安全【全网最全最细致】[深度剖析] #Windows#macOS#Linux#TTS#网站#源码#地图#安卓#浏览器扩展#iOS#开源#docker#输入法#模拟器#影视#PDF#字幕#翻译#视频下载#X#种子#资源#工具箱#播放器#单词#英语#图床#英语学习#直播源#阅读器#虚拟机#音乐播放器#节点#VPN#翻墙#音乐

12•••100•••117118119120121122
ПретходнаСтраница 119 од 122Следна