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

Резултати

Пронајдени 3 слични објави

Пребарај: #frontends

当前筛选 #frontends清除筛选
Libreware

@libreware · Post #1177 · 10.09.2023 г., 15:41

Proxy Redirect #Userscript Redirection userscript for privacy-oriented and open-source proxy #frontends. Proxy Redirect automatically redirects to instances of privacy-oriented frontends, such as Scribe, Nitter, Libreddit, etc. This allows more reliable access to available public instances per service, while also helping to distribute traffic more evenly across all instances and avoid performance bottlenecks and rate-limiting. https://openuserjs.org/scripts/sjehuda/Proxy_Redirect

Libreware

@libreware · Post #913 · 18.03.2021 г., 16:10

Front-ends for evil sites/platforms: Youtube - Source: https://github.com/iv-org/invidious - Instances: https://api.invidious.io Twitter - Source: https://github.com/zedeus/nitter - Instances: https://github.com/zedeus/nitter/wiki/Instances Twitter+YouTube -Source: https://github.com/ytorg/Yotter -Instances: https://github.com/ytorg/Yotter#public-instances Why do I have to register to use Yotter? Instagram - Source: https://sr.ht/~cadence/bibliogram/ - Instances: https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md Reddit - Sources: https://github.com/spikecodes/libreddit (1) https://codeberg.org/teddit/teddit (2) - Instances: https://github.com/spikecodes/libreddit#instances (1) https://codeberg.org/teddit/teddit#instances (2) Google Translate - Sources: https://sr.ht/~yerinalexey/gtranslate/ (1) https://git.sr.ht/~metalune/simplytranslate_web (2) - Instances: https://gtranslate.metalune.xyz/ (1) https://translate.metalune.xyz/ (2) Google Search Engine - Source: https://github.com/benbusby/whoogle-search - Instances: https://github.com/benbusby/whoogle-search#public-instances P.S. JavaScript isn't required for any core functionality with these front-ends 📡@NoGoolag📡@Libreware #frontends#yt#alternatives