TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #169 · 21 окт.

А знаете ли вы, что в Bash есть особая переменная "$_" ? Из описания можно узнать, что в переменную "$_" помещается последний аргумент последней команды. Что-то знакомое? Конечно, в Python есть примерно тоже самое. Мы знаем, что дата первого релиза Bash (8 июня 1989) несколько раньше чем первый релиз Python (20 февраля 1991). Если учесть, что по задумке автора Python это агрегация самых успешных практик отовсюду, можно ли сказать что именно эта фишка к нему пришла из Bash? Ни подтверждения ни опровержения я пока не нашел. Давайте просто считать это совпадением 😉 А как это может быть полезно в Bash? Приведу простой пример, который оценят те, кто часто работает в терминале. Допустим, нам надо создать директорию и зайти в неё. Что обычно делаем? :~$ mkdir foldername :~$ cd foldername :~/foldername$ Как это сделать в одну команду? :~$ mkdir foldername && cd foldername :~/foldername$ Уже лучше, но хочется короче, без повторов. Вот тут и пригодится наша переменная. Напомню, что в неё сохраняется последний аргумент предыдущей команды. :~$ mkdir foldername && cd $_ :~/foldername$ _________________ PS. Символы "&&"" разделяют команды и означают, что требуется выполнить вторую команду только если первая завершилась успешно. #linux#tricks

Резултати

Пронајдени 1,454 слични објави

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

AIGC

@aigcrubbish · Post #49 · 07.05.2025 г., 14:37

Deepin Desktop removed from openSUSE openSUSE 宣布移除 Deepin 桌面环境 SUSE 安全团队宣布,由于违反项目打包政策,将从 openSUSE 中移除 Deepin 桌面环境。移除决定源于 deepin-feature-enable 包被发现绕过了安全白名单机制。虽然打包者并非恶意,但这种未经讨论就实施的"许可协议"对话框违反了 openSUSE 的打包政策。 该包还存在其他问题:安装的 D-Bus 配置文件和 Polkit 策略未被包管理器记录,卸载时无法清理。基于安全和质量保证考虑,Deepin 桌面将从 Tumbleweed 和未来 Leap 16.0 中完全移除。Leap 15.6 仅移除有问题的 deepin-feature-enable 包。 团队表示需要重新评估 Deepin 的打包和安全性,建议由新维护者与上游建立联系,逐步审查敏感组件。公告还提供了继续在 openSUSE 上使用 Deepin 的替代方案指南。 原文链接:https://lwn.net/Articles/1020407/ #Linux#开源#安全#桌面环境 #AIGC Read more

AIGC

@aigcrubbish · Post #128 · 08.01.2026 г., 19:04

Fedora Linux 43 election results Fedora Linux 43 选举结果公布。本次选举为 Fedora 工程指导委员会(FESCo)开放了五个席位。当选者分别是 Kevin Fenzi、Zbigniew Jędrzejewski-Szmek、Timothée Ravier、Dave Cantrell 和 Máirín Duffy。 原文链接:https://lwn.net/Articles/1053333/ #Linux#Fedora#开源治理 #AIGC Read more

iGitHub

@igithub · Post #100 · 26.05.2023 г., 07:27

▎SmartDNS SmartDNS 是一个运行在本地的 DNS 服务器,它接受来自本地客户端的 DNS 查询请求,然后从多个上游 DNS 服务器获取 DNS 查询结果,并将访问速度最快的结果返回给客户端,以此提高网络访问速度。 SmartDNS 同时支持指定特定域名 IP 地址,并高性匹配,可达到过滤广告的效果; 支持DOT(DNS over TLS)和DOH(DNS over HTTPS),更好的保护隐私。 与 DNSmasq 的 all-servers 不同,SmartDNS 返回的是访问速度最快的解析结果。 支持树莓派、OpenWrt、华硕路由器原生固件和 Windows 系统等。 项目地址:https://github.com/pymumu/smartdns SmartDNS官网:https://pymumu.github.io/smartdns 标签:#OpenWrt#Windows#路由#Linux

好耶

@haoye789 · Post #83 · 17.08.2025 г., 01:11

#软件#音乐#开源#第三方 ⭐VutronMusic - 高颜值第三方网易云播放器 ▎软件平台:#Windows#macOS#Linux ▎软件介绍:一款开源高颜值第三方网易云播放器,支持云盘、歌曲评论等功能。 支持本地歌曲、离线歌单,本地歌曲支持读取内嵌封面、内嵌歌词,支持线上信息匹配。 支持 Mac 状态栏歌词、TouchBar 歌词等;Linux 可通过插件将歌词显示在 TopBar 里。 ▎软件下载:点击下载

APP喵-软件资源共享

@appmew · Post #14897 · 24.10.2025 г., 02:34

Aictionary:跨平台的桌面词典app,快速、简洁,并且真的让你学会英语。 免费开源,支持 Windows、macOS 和 Linux。目前已默认下载基于词频统计的前 25000 个单词,可快速查词。 🏷标签:#英语学习#词典#windows#macOS#linux ☁链接:点击获取 ⭐频道😮群聊✏投稿🌍中文

APP喵-软件资源共享

@appmew · Post #15485 · 08.12.2025 г., 02:32

IReader:免费开源的 Android 和 桌面端 小说阅读器。 支持安卓、windows、macOS,通过扩展和 JavaScript 插件支持多种书源,没有广告。 🏷标签:#安卓#小说#小说阅读器#Windows#MacOS#Linux ☁链接:点击获取 ⭐频道😮群聊✏投稿🌍中文

Linuxgram 🐧

@linuxgram · Post #18732 · 10.05.2026 г., 07:21

📰 Linux's adorable Tux the Penguin mascot turns 30 today, and the OG design is still being used Whenever people think of Linux, the first thing that springs to mind, regardless of whether they're an open-source vet or if they've never even touched a Linux PC before, is Tux. Tux is the penguin associated with the Linux kernel as a whole, and he's found his way onto operating systems, merch, and various memes that depict the image creator's distaste for Windows. 🔗 Source: https://www.xda-developers.com/linuxs-tux-the-penguin-mascot-turns-30-today/ #kernel#linux#opensource

Linuxgram 🐧

@linuxgram · Post #18691 · 06.05.2026 г., 16:52

📰 Nouveau vs. NVIDIA R595 Linux Driver For Workstation Graphics Performance When having the HP Z6 G5 A workstation in the lab for benchmarking, one of the curiosity-driven tests was seeing how well the latest open-source and upstream Nouveau driver stack is competing against the latest official NVIDIA R595 driver for workstations. The official NVIDIA Linux driver stack remains the best positioned software solution for RTX (PRO) hardware but Nouveau continues evolving while awaiting the Nova kernel driver to reach the... 🔗 Source: https://www.phoronix.com/review/nvidia-nouveau-nvk-may2026 #kernel#linux#opensource

Linuxgram 🐧

@linuxgram · Post #18394 · 11.04.2026 г., 14:54

📰 RISC-V BeagleV Ahead Single Board Computer To See Working HDMI With Linux 7.1 The BeagleV Ahead is an open-source RISC-V single board computer S(BC) built around the quad-core TH1520 SoC. With the Linux 7.1 mainline kernel there is HDMI display support coming now that the Device Tree bits have been added... 🔗 Source: https://www.phoronix.com/news/Linux-7.1-BeagleV-Ahead-HDMI #kernel#linux#opensource

Linuxgram 🐧

@linuxgram · Post #18195 · 26.03.2026 г., 11:20

📰 NXP Neutron NPU Kernel Driver Blocked For Now By A Closed-Source User-Space Blob Last month NXP posted open-source Linux kernel driver patches for their Neutron NPU accelerator. The NXP Neutron NPU aims to help with edge AI applications and this neural processing unit is found in their different SoCs. Unfortunately, their GitHub repository for the user-space software ends up containing a binary-only blob that will end up delaying plans on getting this driver into the mainline Linux kernel... 🔗 Source: https://www.phoronix.com/news/NXP-Neutron-NPU-User-Blob #opensource#linux#kernel

Linuxgram 🐧

@linuxgram · Post #18013 · 08.03.2026 г., 17:20

📰 OpenWrt 25.12 Released with APK Package Manager Replacing opkg OpenWrt 25.12 open-source router firmware arrives with a major shift to the APK package manager, replacing opkg, alongside Linux kernel 6.12. 🔗 Source: https://linuxiac.com/openwrt-25-12-released-with-apk-package-manager-replacing-opkg/ #kernel#linux#opensource

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