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

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

Linuxgram 🐧

@linuxgram · Post #18759 · 12.05.2026 г., 14:39

📰 Linux Scheduler Work Helping Boost Gaming Performance On Old "Potato" Hardware Prominent Linux kernel engineer Peter Zijlstra of Intel has been working on a set of scheduler patches to help with enhancing the behavior and delivering better results, especially for aging hardware he described as a "potato" -- an Intel Sandy Bridge desktop CPU with AMD Radeon RX 580 Polaris graphics. Benchmark results are promising from this work for gaming on old hardware while other workloads may ultimately stand to benefit too... 🔗 Source: https://www.phoronix.com/news/Linux-Flatten-The-Pick #amd#intel#kernel#linux

Linuxgram 🐧

@linuxgram · Post #18699 · 07.05.2026 г., 13:14

📰 Linux Drivers For The AMD Elan SoCs From The 1990s On Track For Retirement Merged for the current Linux 7.1 cycle was beginning to phase out the Intel 486 processor support from the mainline kernel moving forward. That initial step with Linux 7.1 was dropping the various Kconfig options to allow compiling Linux kernel builds for targeting various i486 platforms. As part of that, the AMD Elan SoC configuration patches were dropped. 🔗 Source: https://www.phoronix.com/news/AMD-Elan-Linux-Driver-Removal #amd#intel#kernel#linux

Linuxgram 🐧

@linuxgram · Post #18402 · 12.04.2026 г., 16:15

📰Many Wonderful Improvements Expected For Linux 7.1, Especially For AMD & Intel With Linux 7.0 expected for release later today, in turn the Linux 7.1 merge window will kick off for the two week period of landing all sorts of exciting new features, changes, and removal of old features from the kernel. Here is a look at some of what is on the table for the Linux 7.1 merge window... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-Features-Early-Look #amd#intel#kernel#linux

折腾实验室频道

@TossLabChannel · Post #368 · 11.12.2024 г., 07:49

#Cloudflare#SpeedTest#Windows#MacOS#Linux#优选IP CloudflareSpeedTest:优化你的 Cloudflare 访问体验,自动优选IP 很多国外网站使用 Cloudflare CDN,但分配给中国内地的 IP 通常延迟高、丢包多、速度慢。 CloudflareSpeedTest 就是为解决这一问题而生: • 功能:测试 Cloudflare CDN 的延迟和速度,自动筛选最快的 IP(支持 IPv4 和 IPv6)。 • 优势:无需手动从庞大的 IP 段中寻找,轻松实现自选优选 IP,提升访问速度和稳定性。 如果你常访问使用 Cloudflare 的网站,这款工具不容错过! 📢 群聊: @TossLab 🎈 频道: @TossLabChannel ❤️不想错过精彩内容,请打开 #频道通知,你的 #阅读#点赞#转发 便是我发帖的最大动力!

Linuxgram 🐧

@linuxgram · Post #17802 · 16.02.2026 г., 22:31

📰Reverse Engineering Linux Distro REMnux Marks 15 Years With Major v8 Release Featuring AI Agent Support Malware analysis Linux distro gets Ubuntu 24.04 base, a new installer, and many new tools. 🔗 Source: https://itsfoss.com/news/remnux-v8-release/ #distro#linux#ubuntu

djangoproject

@djangoproject · Post #510 · 27.11.2017 г., 04:53

https://www.linux.com/learn/intro-to-linux/2017/11/5-coolest-linux-terminal-emulators 5 Coolest #Linux Terminal Emulators Sure, we can get by with boring old GNOME terminal, Konsole, and funny, rickety, old xterm. When you're in the mood to try something new, however, take a look at these five cool and useful Linux terminals. #Xiki: http://bit.ly/2i8y7Jm #Cool_Retro_Term: http://bit.ly/1tC7gBP #Sakura: https://bugs.launchpad.net/sakura #Terminology: https://www.enlightenment.org/about-terminology #Tilda: https://github.com/lanoxx/tilda

Dasturlash hayoti️️ ️

@dasturlash_hayoti · Post #3808 · 21.05.2025 г., 17:29

👩‍💻101 ta Linux buyruqlari — CheatSheet (Kitob) Linux terminalini o‘rganmoqchimisiz? Yoki siz allaqachon tajribali foydalanuvchimisiz? Unda quyidagi CheatSheet siz uchun! Ushbu material yordamida siz quyidagilarni o‘rganasiz: • Basics; - File Hierarchy Standard (FHS); - Commands; • Disk and File System Management; - General Disk Manipulation (non-LVM); - Globs (Wildcards); - Regex; - Stream redirection; • Text Readers & Editors; - Less; - VI; • User and Group Management; • File System Permissions; • SSH; • Cronjobs; • Package Management; - RPM; - YUM; • List of commands by category: - Directory Navigation; - File Commands; - File and Directory Manipulation; - Package archive and compression tools; - System commands; - Networking Commands; - Package Management; - User Information commands; - Session commands; - Getting Help; - Applications. 🔗To‘liq material: https://github.com/bobbyiliev/101-linux-commands-ebook 📌 Kitob ham yangi boshlovchilar, ham tajribali sysadminlar uchun foydalidir. Har bir bo‘lim aniq misollar bilan yoritilgan. #Linux#Terminal#Buyruqlar#LinuxCommands#CheatSheet#OpenSource 💻@dasturlash_hayoti — bir xatoni tuzatib, ikkinchisiga tayyorlanish! 😅

AIGC

@aigcrubbish · Post #119 · 07.01.2026 г., 02:31

[$] The difficulty of safe path traversal runc 容器运行时维护者 Aleksa Sarai 在 2025 年 Linux Plumbers Conference 上讨论了路径遍历漏洞的难题。runc 近期再次出现的安全漏洞(CVE-2025-52565)根源在于 Linux 上安全处理文件路径的复杂性。Sarai 概述了 runc 遇到的相关问题,并呼吁开发者使用他正在开发的库 libpathrs,以实现更安全的路径解析和遍历。 原文链接:https://lwn.net/Articles/1050887/ #Linux#容器安全#路径遍历#runc#libpathrs #AIGC Read more

Linuxgram 🐧

@linuxgram · Post #18763 · 12.05.2026 г., 21:11

📰Running Four Intel Graphics Cards Under Linux On Ubuntu 26.04 It's been nearly one year to the week since Intel introduced Project Battlematrix as their initiative for improving their Linux driver support for the Arc Pro B-Series with enhancements such as bettering the multi-GPU support in allowing up to eight Arc Pro GPUs per system as well as other open-source driver optimizations in the era of AI. 🔗 Source: https://www.phoronix.com/review/intel-arc-pro-b70-four #intel#linux#opensource#ubuntu

GitHub Trends

@githubtrending · Post #15302 · 04.12.2025 г., 18:30

#python#language_models#linux#machine_translation#nlp#open_source#python#transformers#translation Argos Translate is a free, open-source tool that lets you translate text offline using your own computer. It works as a Python library, command-line tool, or with a graphical interface, and supports many languages. You can install language packages for direct translations, and it can even translate between languages that don’t have a direct package by using a middle language. This means you can translate more language pairs, though the quality might be a little lower. Argos Translate is fast, private, and does not need an internet connection after setup, making it useful for secure or offline translation needs. https://github.com/argosopentech/argos-translate

折腾实验室频道

@TossLabChannel · Post #174 · 18.11.2024 г., 01:01

#Linux#命令 Linux常用命令教学 零基础快速入门 学linux就是这么简单! Linux是什么 Linux是一种免费、开源的操作系统,由林纳斯·托瓦兹在1991年创建。Linux基于Unix操作系统,采用了分层的设计思想,支持多用户、多任务、多线程的操作,并具有良好的稳定性和安全性。Linux具有高度的可定制性,用户可以根据自己的需要自由地配置和修改系统。Linux广泛用于 服务器、桌面电脑、移动设备等领域。 Ubuntu、Debian、CentOS又是什么? Linux是一种开放源代码的操作系统内核,而Ubuntu、Debian、CentOS等是基于Linux内核开发的操作系统。它们都使用了Linux内核,并且拥有自己的软件包管理工具、文件系统、命令行界面等等。这些操作系统在细节和特性上可能有所不同,但都遵循Linux内核的设计和实现。 😀视频教程: 点击链接 ❤️不想错过每个我精心推荐内容,请打开 #频道通知,你的 #阅读#点赞#转发 便是我发帖的最大动力! 📢 群聊: @TossQL 🎈 频道: @TossQLChannel 本频道主要折腾分享 #青龙面板, #签到任务, #Docker, #VPS服务器, #github有趣项目

Linuxgram 🐧

@linuxgram · Post #18730 · 09.05.2026 г., 22:04

📰 Aurora is the KDE side of Bluefin, and it might be the most polished Linux desktop right now I'm a huge fan of Linux's KDE. It's my favorite desktop environment by far, and sometimes, simply learning that an OS uses KDE is enough of an excuse to give it a try. So, when I heard that the Bluefin distro had a KDE fork called Aurora, I knew I had to give it a try. 🔗 Source: https://www.xda-developers.com/aurora-is-the-kde-side-of-bluefin-and-it-might-be-the-most-polished-linux-desktop-right-now/ #distro#kde#linux

12•••100•••109110111112113•••121122
ПретходнаСтраница 111 од 122Следна