This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Format: Command -> Description | |
Notes for myself, using zsh, Yakuake. | |
1. export PS1="[django] > " -> use custom name instead of path to make it easier to work. | |
2. ln -s /var/www/versions/1/web /var/www/web -> create symbolic link | |
3. cat access.log | awk '{ if($9 == 404) { print $7 } }' | sort | uniq -c | sort -r | head -10 -> check for 404 error logs in apache | |
4. redis-cli -n 2 KEYS "*key*" | xargs redis-cli -n 2 DEL -> Delete keys from table `2` matching to query inside wildcard | |
4. b. select 2; flushdb -> flush all keys in table `2` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Halil Kaya <halil@halilkaya.net> | |
# Author: Emin Mastizada <emin@mastizada.com> | |
# Clean sssd.conf | |
rm /etc/sssd/sssd.conf | |
tocuh /etc/sssd/sssd.conf | |
# Set hostname |