А знаете ли вы, что в 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
https://goo.gl/XT2vGj
Anaconda Enterprise 5 new capabilities include:
Integrated #data_science experience for the entire organization
Collaboration and reproducibility with JupyterLab and #Anaconda Project
One-click data science #deployment
Scalable architecture for on-premises and cloud deployments
http://www.aparat.com/v/Cjarf
Happy Asset Deployments With Webpack & Django by Scott Burns
Webpack
What is it?
What does it do?
Source transformations
Output
Why #Djangos collectstatic is not up to the job?
Must run after #deployment
Doesn't do all the things
Slow
Integration on both sides
Webpack bundle tracker to output build stats
Django #Webpack bundle loader to read those files
How to render links in templates.
Github actions dan foydalanib CI/CD qilish
Do'stlar, avvalgi mavzularimizda Windows server bilan to'g'ridan to'g'ri ishlab, .NET ilovalarimizni deploy qilishni ko'rib chiqdik. O'ylaymizki, siz CI/CD haqida eshitgansiz. Masalan, Heroku servislaridan deployment uchun foydalangansiz, esingizda bo'lsa u yerda CI/CD sozlamalari qilingan edi. Ya'ni github/gitlab/azuredevops ga push qilish orqali, loyihamiz avtomatik tarzda build -> test -> deploy -> run bo'lardi. Ushbu mavzuni kengroq o'rganishimiz uchun Abduvohid ustozni mahorat darsimizga taklif qildik.
Barchangizni ushbu mahorat darsida kutib qolamiz. Kirsangiz xursand bo'lamiz, kirmasangiz hafa bo'lish yo'q )
Sana: 5-mart, 20:00
Havola: Zoom
Speaker: Wahid Abduhakimov
#githubactions#deployment#cicd
.NET Uzbekistan Community
➖➖➖➖➖➖➖➖➖➖
Telegram | Instagram | Youtube
#go#containers#deployment#devops#docker#docker_compose#golang#hacktoberfest#kubernetes#orchestration#self_hosted
Uncloud lets you run and manage web apps across multiple servers (cloud, home, or bare metal) as easily as using Docker Compose, but with production features like zero-downtime updates, automatic HTTPS, and cross-machine scaling. It connects your machines into a secure, private network without needing a central control server, so there’s less to manage and no single point of failure. You keep full control of your infrastructure and data, avoid vendor lock-in, and get a simple, cloud-like experience without the complexity of Kubernetes.
https://github.com/psviderski/uncloud
Coblocks Secures $500K Funding
Coblocks has successfully raised $500K in funding as of December 4, 2024. The platform offers unified tooling, instant deployment, and seamless collaboration in one streamlined solution.
#Coblocks#Funding#Tech#Startup#Platform#Collaboration#Deployment#Innovation#Investment#Tools#Startups#InvestmentRound#FundingRound#Financing#Growth#Technology#Business#Software#Solutions#Digital