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 #17988 · 06.03.2026 г., 07:05

📰 System76 Comments On Recent Age Verification Laws System76 published a statement today regarding the recent laws coming about in California and likely Colorado and New York too around requiring age verification on operating system accounts and ultimately exposing the information (or at least age brackets) to apps and websites. System76's position is interesting given that they sell Linux-loaded desktops, workstations and laptops plus being an operating system vendor with their in-house Pop!_OS... 🔗 Source: https://www.phoronix.com/news/System76-Age-Verification-Laws #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17963 · 04.03.2026 г., 13:36

📰EA Javelin Anticheat job listing mentions future support for Linux and Proton One big issue with Linux / SteamOS gaming is a lack of anti-cheat support, and it seems Electronic Arts (EA) have future plans for supporting the platform.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/03/ea-javelin-anticheat-job-listing-mentions-future-support-for-linux-and-proton/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17961 · 04.03.2026 г., 11:22

📰 Xournal++ adds tablet-friendly toolbar mode If you take handwritten notes on a Linux tablet, chances are that Xournal++ is already on your radar as its solid stylus support and touchscreen compatibility has earned it a loyal following among those who’d rather annotate PDFs or sketch diagrams than type everything out. One criticism that follows it around is its interface. It’s rather pointer-led; lots of menus, buttons and tiny hit targets in toolbars. 🔗 Source: https://www.omgubuntu.co.uk/2026/03/xournalpp-tablet-mode-ui #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17959 · 04.03.2026 г., 08:44

📰 Memerist is a new desktop meme generator for Linux Is the classic image meme dead, or buried under an avalanche of AI slop? Memerist, a new(ish) native meme generator for Linux, emerged on Flathub recently to help dig them out. Memerist is a native (GTK4/libadwaita) app for Linux desktop. It is technically an image editor with a focused set of features, geared to those who want a convenient, local tool to quickly create and share popular memes. 🔗 Source: https://www.omgubuntu.co.uk/2026/03/memerist-meme-generator-app-linux #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17956 · 03.03.2026 г., 21:21

📰 COSMIC feels like the first Linux desktop designed for normal people COSMIC desktop may be new, but it's shaping up to be one of the best Linux desktops for mass adoption already. Here's why. 🔗 Source: https://www.xda-developers.com/cosmic-feels-like-first-desktop-environment-designed-normal-people/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17949 · 03.03.2026 г., 10:55

📰Building a Retro Linux Gaming Computer Part 51: It’s Not Easy Being Green When I first started using Linux full time in 2007, I was still not well versed on how video cards worked.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/03/building-a-retro-linux-gaming-computer-part-51-it-s-not-easy-being-green/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17948 · 03.03.2026 г., 10:24

📰Running Mainline Linux, U-Boot, and Mesa on Rockchip: A year in review Get the recap of Nicolas Frattaroli's FOSDEM talk detailing Rockchip’s mainline progress, including Vulkan 1.4 and NPU support as a vital path to sustainable, affordable hardware. 🔗 Source: https://www.collabora.com/news-and-blog/blog/2026/03/02/running-mainline-linux-u-boot-and-mesa-on-rockchip-a-year-in-review/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17942 · 02.03.2026 г., 12:33

📰 Proton Experimental gets improvements for Vermintide 2 and more controller support for launchers Valve released an update for Proton Experimental for February 27th, their testing ground for getting more Windows games running on Linux / SteamOS systems.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/03/proton-experimental-gets-improvements-for-vermintide-2-and-more-controller-support-for-launchers/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17923 · 27.02.2026 г., 19:33

📰 Linux runs most PC games now, and you don't need SteamOS to do it Linux gaming is slowly gaining prominence, and while it's definitely not mainstream, it has crossed a line of viability that sounded ridiculous even a few years ago. It's no longer a hobby project, but a real way to enjoy most of your favorite games. Not every title works, and a handful of popular multiplayer games still treat Linux like a second-class citizen, but by and large, even games that aren't supported by Linux natively will run... 🔗 Source: https://www.xda-developers.com/linux-runs-most-pc-games-now-and-you-dont-need-steamos-to-do-it/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17922 · 27.02.2026 г., 17:21

📰 The OrangePi Neo gaming handheld with Manjaro Linux is now "on ice" due to component prices The latest update for the OrangePi Neo handheld with Manjaro Linux is not a positive one, with the whole thing now unfortunately "on ice".Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/02/the-orangepi-neo-gaming-handheld-with-manjaro-linux-is-now-on-ice-due-to-component-prices/ #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17909 · 26.02.2026 г., 20:54

📰 AlmaLinux Showing Nice Growth With More Than 2M System Update Check-Ins Per Week AlmaLinux as one of the leading, modern and community-minded alternatives to Red Hat Enterprise Linux (RHEL) continues enjoying very nice growth. In their 2025 Year In Review they provided a look at their growth with now having more than two million systems per week checking in for software updates... 🔗 Source: https://www.phoronix.com/news/AlmaLinux-2M-Weekly-Check-Ins #linux

Hashtags

Linuxgram 🐧

@linuxgram · Post #17906 · 26.02.2026 г., 18:06

📰 Some Linux kernels just got a nice LTS end-of-life extension, including 6.12 As much as the FOSS community has an excellent record for maintaining its software for long periods of time after a new version releases, people can't maintain an operating system forever. At some point, you have to cut off the old versions and redirect your efforts onto the newer ones. As such, Linux kernels do have an end-of-life date where support will end for that version. 🔗 Source: https://www.xda-developers.com/some-linux-kernels-just-got-a-nice-lts-end-of-life-date-extension/ #linux

Hashtags

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