Place this inside your virtual host file in the server {} block configuration:
rewrite ^/(.*)/$ /$1 permanent;
Full example:
server { listen 80; server_name www.mysite.com;
find * -type f -exec perl -p -i -e 's/([^:]):(\w+)\s*=>/\1\2:/g' {} \; |
# in monitrc or in conf.d/some.conf | |
set alert [email protected] but not on { pid, ppid } |
$ wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | |
$ gunzip GeoLiteCity.dat.gz |
$ openssl rand -base64 32 |
# vi /etc/pam.d/sshd | |
Code: | |
session optional pam_motd.so motd=/run/motd.dynamic noupdate | |
Remove "noupdate" | |
Code: | |
session optional pam_motd.so motd=/run/motd.dynamic |
# vi /etc/login.conf | |
russian|Russian Users Accounts:\ | |
:charset=UTF-8:\ | |
:lang=ru_RU.UTF-8:\ | |
:tc=default: | |
# cap_mkdb /etc/login.conf | |
# pw usermod -n $username -L russian |
$ rvm pkg install readline | |
$ rvm reinstall 2.1.2 --with-readline-dir=$rvm_path/usr |
Place this inside your virtual host file in the server {} block configuration:
rewrite ^/(.*)/$ /$1 permanent;
Full example:
server { listen 80; server_name www.mysite.com;
1) Open your bash global profile file: | |
# vi /etc/profile | |
2) Add following line to it: | |
export INPUTRC=/usr/local/etc/inputrc | |
3) Close and save the file | |
4) Open the file /usr/local/etc/inputrc and define / modify key binding: | |
# vi /usr/local/etc/inputrc |
git branch -D <name-of-branch> | |
git branch -d -r origin/<name-of-branch> | |
git push origin :<name-of-branch> |