Skip to content

Instantly share code, notes, and snippets.

View mastizada's full-sized avatar
👽

Emin Mastizada mastizada

👽
View GitHub Profile
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`
@mastizada
mastizada / fedora26.sh
Last active August 17, 2017 22:16
Marmara CSE Lab script
#!/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