Category Archives: GNU/Linux
Wildcard SSL certificate via acme.sh + zerossl + dns_cf
Add these vars to .acme/dnsapi/dns_cf.sh or to .bashrc: CF_Token=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’ CF_Account_ID=’yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy’ CF_Zone_ID=’zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz’ Install acme.sh: curl -k https://get.acme.sh | sh -s email=ssl@your-domain.site Issue the certificate: acme.sh –issue -d ‘your-domain.site’ -d ‘*.your-domain.site’ –keylength ec-384 –dns dns_cf Install the certificate to nginx: acme.sh –install-cert Continue reading Wildcard SSL certificate via acme.sh + zerossl + dns_cf
commit to master
Have you ever accidentally committed to master? ) To prevent this from happening again, I just added to my .bashrc: cd ~/my_git_repo && git checkout vitich && cd – Of course, I have already created my own branch: git checkout Continue reading commit to master
OSDN Kyiv 2021
Post Views: 17
30 years of Linux kernel
August 25, 1991 Linus Torvalds posts a message to the Internet newsgroup comp.os.minix with the subject line “What would you like to see most in minix?” This is the first announcement that he is working on an operating system that Continue reading 30 years of Linux kernel
Friday the 13th and 666 days of uptime
Next fridays 13th: Fri 13 May 2022 Fri 13 Jan 2023 Fri 13 Oct 2023 Here are the best days to restart your servers: 2021-12-16 2022-11-17 2023-02-16 Stay tuned ) Post Views: 12
Support for Richard Stollman
Richard M. Stallman, frequently known as RMS, has been a driving force in the free software movement for decades, with contributions including the GNU operating system and Emacs. Recently, there have been vile online attacks looking to remove him from Continue reading Support for Richard Stollman
Replace author in docx files
Install python-docx and parallel: $ sudo apt install python-docx parallel Save this code as /usr/local/bin/docx_author: #!/usr/bin/env python ”’ Requirements: python-docx, parallel Usage: docx_author ‘Putin\ Huilo’ file.docx find /home/user/some_dir -type f -name “*\.docx” | parallel docx_author ‘Putin\ Huilo’ ”’ from docx Continue reading Replace author in docx files
domain expiration check bash telegram
You need your own telegram bot (@BotFather) and channel to receive messages from your bot Place this script to your bin directory, edit bot token and chat id and add tthe script to crontab. Add your domain list (one per Continue reading domain expiration check bash telegram
COVID-19 statistics in conky
Add these lines to conky config: ${voffset 10}${offset 20}${color2}World COVID-19 ${hr 5} #Confirmed: ${texeci 60 curl -s https://corona.lmao.ninja/all | jq -r .cases} #Deaths: ${texeci 60 curl -s https://corona.lmao.ninja/all | jq -r .deaths} ${texeci 3600 curl -s https://corona.lmao.ninja/all | jq .| Continue reading COVID-19 statistics in conky