curl https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/master/completions/tmux > ~/.bash_completion
Tag: Linux
Explain linux commands
Stop reference spam from *.xyz domains
Add to /var/www/html/.htaccess
following lines:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Block/Forbid Referer Spammers/Referer Phishing
RewriteCond %{HTTP_REFERER} .*\.xyz [NC,OR]
RewriteCond %{HTTP_REFERER} .*\.best [NC]
RewriteRule .* - [F]
</IfModule>
Restart apache
sudo service apache2 restart
Install certbot certificate
SSH to server
Add Certbot PPA
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
Install Certbot
sudo apt-get install certbot python-certbot-apache
Get and install certificate
sudo certbot --apache
Test automatic renewal
sudo certbot renew --dry-run
Confirm that Certbot worked
Visit https://lbn.in.ua
bat - a cat clone with syntax highlighting and Git integration
Learn X in Y minutes
Algorithms & Data Structures
Languages
Tools
How to change linux timezone
ln -sf /usr/share/zoneinfo/Europe/Kiev /etc/localtime