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/sh |
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
# = ^ . ^ = | |
# | |
# Apache httpd DeflectorShield | |
# Andres Hernandez (tonejito) | |
# http://tonejito.blogspot.com:80/ | |
# | |
# 100 Informational | |
# 100 Continue |
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/sh | |
# = ^ . ^ = | |
# | |
# ./belong.sh - Get all users in group | |
# Andres Hernandez (tonejito) | |
# http://tonejito.blogspot.com:80/ | |
SED=/bin/sed | |
AWK=/usr/bin/awk | |
GETENT=/usr/bin/getent |
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 | |
# Download http://www.skype.com/en/download-skype/skype-for-linux/downloading/?type=debian32 | |
wget -c 'http://download.skype.com/linux/skype-debian_4.1.0.20-1_i386.deb' | |
# Try to install (it will fail) | |
dpkg -i --force-architecture skype-debian_4.1.0.20-1_i386.deb | |
# Add i386 architecture to the system | |
dpkg --add-architecture i386 |
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 | |
# Andres Hernandez - tonejito | |
# Get installed packages in Debian 64-bit | |
egrep '^Install' /var/log/apt/history.log | \ | |
sed -e 's/Install: //g' -e 's/),\ /)\n/g' | \ | |
egrep -E '(:amd64 )?\(.*\)' | \ | |
grep -v automatic | \ | |
sed -e 's/\(:amd64\ \)\?(.*)//g' |
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/sh | |
# = ^ . ^ = | |
ps afx | egrep -v '\[kthreadd\]|\ \\_\ \[|egrep' |
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 -vx | |
# find-love - Helps to find love in life | |
# Andres Hernandez - tonejito | |
egrep '<3|love' /var/log/life &>/dev/null | |
LUCK=$? | |
case "$LUCK" | |
in |
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
Floppy 1474560 | |
CD 737280000 | |
DVD 4707319808 | |
DVD DL 8547991552 | |
HD-DVD 16106127360 | |
HD-DVD DL 32212254720 | |
BD 25025314816 | |
BD DL 50050629632 |
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 | |
# thesis-vm - Launches a serial console enabled VM and connects to ttyS0 with gnu screen | |
# Andres Hernandez - tonejito | |
# September 2013 | |
RM=rm | |
TEE=tee | |
SED=sed | |
GREP=grep | |
ECHO=echo |
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 -vx | |
# httpd-debug.sh | |
# Run apache in DEBUG mode with logging to stdout and trace of opened files | |
# Andres Hernandez - tonejito - | |
STRACE=`which strace` | |
APACHE_DEBUG="/usr/sbin/apache2 -X -e debug" |
OlderNewer