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

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

Linuxgram 🐧

@linuxgram · Post #18307 · 04.04.2026 г., 06:48

📰 Skyscraper brings Bluesky to the Linux terminal What’s better than using a social network? Not using one, I suppose. Or using one in the nerdiest way you can. Case in point, Skyscraper. Created by developer Cameron Banga, Skyscraper is an open-source terminal client for Bluesky, written in Rust and available on GitHub. It does the core essentials – timeline browsing, posting, replies, reposts, likes and profile viewing. 🔗 Source: https://www.omgubuntu.co.uk/2026/04/skyscraper-bluesky-terminal-client-linux #linux#opensource

Linuxgram 🐧

@linuxgram · Post #18306 · 04.04.2026 г., 01:07

📰 OpenRazer 3.12.1 Enables Two More Razer Devices Under Linux OpenRazer 3.12 released in mid-March as the latest feature update to these open-source drivers for Razer hardware on Linux. Out today is OpenRazer 3.12.1 for enabling two more Razer products on Linux plus shipping a couple fixes... 🔗 Source: https://www.phoronix.com/news/OpenRazer-3.12.1-Released #linux#opensource

Linuxgram 🐧

@linuxgram · Post #18290 · 02.04.2026 г., 22:56

📰 Parrot Linux Takes Stand Against Age Verification Parrot Linux publishes an official statement against age verification as opposition grows across the Linux and open-source world. 🔗 Source: https://linuxiac.com/parrot-linux-takes-stand-against-age-verification/ #linux#opensource

Linuxgram 🐧

@linuxgram · Post #18230 · 29.03.2026 г., 11:10

📰 RadeonSI Driver Lands Fixes For EDuke32 For Those Wanting To Enjoy Duke Nukem 3D In 2026 It's fairly rare for the RadeonSI Gallium3D driver to hit OpenGL rendering game bugs these days as besides more games going opting for Vulkan API use, RadeonSI is rather robust and very mature at this stage. Recently though a Linux gamer that upgraded to a Radeon RX 9070 XT RDNA4 graphics card noticed that the open-source EDuke32 Duke Nukem 3D build and its derivatives were failing to render properly with the RadeonSI driver... 🔗 Source: https://www.phoronix.com/news/RadeonSI-EDuke32-Fixes #opensource#linux

Linuxgram 🐧

@linuxgram · Post #18229 · 29.03.2026 г., 00:29

📰 MX Linux Takes Clear Stance Against Age Verification Requirements MX Linux opposes age verification rules, citing concerns about privacy and the impact on open source development. 🔗 Source: https://linuxiac.com/mx-linux-takes-clear-stance-against-age-verification-requirements/ #linux#opensource

Linuxgram 🐧

@linuxgram · Post #18145 · 22.03.2026 г., 21:54

📰 D7VK 1.6 Overhauls Interaction With DXVK's D3D9 Backend D7VK is the open-source project that began as a Direct3D 7 implementation atop the Vulkan API for Linux gamers and with time expanded to support all the way back to Direct3D 3. Out today is D7VK 1.6 with continuing to enhance this D3D compatibility layer atop Vulkan for enhancing retro/vintage gaming on Linux... 🔗 Source: https://www.phoronix.com/news/D7VK-1.6-Released #linux#opensource

Linuxgram 🐧

@linuxgram · Post #18098 · 18.03.2026 г., 09:15

📰 Linux Foundation kicks off effort to shield FOSS maintainers from AI slop bug reports Big Tech donates $12.5 million to get things rolling Half a dozen Big Tech players have together delivered $12.5 million in grants towards a project that aims to help maintainers of open source projects to cope with AI slop bug reports.… 🔗 Source: https://go.theregister.com/feed/www.theregister.com/2026/03/18/linux_foundation_ai_slop_defense/ #linux#opensource

Linuxgram 🐧

@linuxgram · Post #18091 · 17.03.2026 г., 15:55

📰 System76 Makes The Best Open-Source Keyboard Even Better If System76 engineers didn't already have enough going on with recently shipping the COSMIC Rust-based desktop environment and also shipping Pop!_OS 24.04 as their in-house Linux distribution plus completely redesigning the Thelio Desktop, they also recently revised their Launch Keyboard. They have made this leading open-source keyboard design even better with the latest iteration of the System76 Launch Keyboard. 🔗 Source: https://www.phoronix.com/review/system76-launch-keyboard-2026 #linux#opensource

Linuxgram 🐧

@linuxgram · Post #17928 · 28.02.2026 г., 13:48

📰 Open source devs consider making hogs pay for every Git pull Careless big-time users are treating FOSS repos like content delivery networks Opinion I'm at the Linux Foundation Members Summit, and Sonatype's CTO Brian Fox introduced me to a new open source problem. I wouldn't have thought that was possible, but here I am.… 🔗 Source: https://go.theregister.com/feed/www.theregister.com/2026/02/28/open_source_opinion/ #linux#opensource

Linuxgram 🐧

@linuxgram · Post #17924 · 27.02.2026 г., 20:53

📰 ONLYOFFICE 9.3 makes document editing easier than ever A new version of ONLYFFICE Desktop Editors, a open source office suite for Windows, macOS and Linux, is out with a fresh set of features and tools. ONLYOFFICE 9.3 adds more signature options for PDF forms, multipage view for documents, new solver tools and regex formulas in the spreadsheets and support for animated GIFs in presentation slides made with the suite’s PowerPoint equivalent. 🔗 Source: https://www.omgubuntu.co.uk/2026/02/onlyoffice-9-3-desktop-editors-released #linux#opensource

Linuxgram 🐧

@linuxgram · Post #17833 · 19.02.2026 г., 11:29

📰This is Probably the Best Video Downloader App (And it is Free and Open Source) If you are looking for a free video downloader that just works on Linux, Windows or macOS, VidBee is the ideal choice here. 🔗 Source: https://itsfoss.com/vidbee/ #linux#opensource

Linuxgram 🐧

@linuxgram · Post #17823 · 18.02.2026 г., 13:02

📰 Experimental code ready for testing to enable HDMI 2.1 FRL with AMDGPU on Linux Unfortunately, the HDMI Forum refused to allow HDMI 2.1+ features in the open source driver, but that hasn't stopped one developer.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/02/experimental-code-ready-for-testing-to-enable-hdmi-2-1-frl-with-amdgpu-on-linux/ #linux#opensource

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