This file contains hidden or 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
surf_ninja: right 0 and 2, left 0 and 986 and then “use” the “welcome” | |
surf_justice: 402 and then enter | |
surf_hawk: | |
1.code: 3421 | |
2.code: 357190 | |
surf_xxs: 0 then enter | |
surf_ssx: 0736825 enter | |
surf_green: 1256 (the big green one) | |
surf_1337maze: 987,635 | |
surf_exotic: 214 then press yellow button |
This file contains hidden or 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 | |
# $1 is URL | |
if ! [[ -z "$1" ]] ; then | |
URL="$1" | |
else | |
echo "usage: httpports URL [port]" | |
echo " httpports URL [begin port] [end port]" | |
echo | |
echo "If no port is specified, httpports will scan over the range 1..65535." |
This file contains hidden or 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
# set up directories | |
INCDIR = ./inc | |
SRCDIR = ./src | |
OBJDIR = ./obj | |
BINDIR = ./bin | |
# linux commands/flags | |
CC = gcc | |
CFLAGS = -Wall -I $(INCDIR) | |
This file contains hidden or 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
kill -9 $(ps -ef | tail -n +2 | awk '{ print $2 }' | while read line; do echo "$RANDOM $line"; done | sort | awk '{ print $2 }' | head -n 1) |
This file contains hidden or 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
sudo du -h / 2>/dev/null | grep '^\([0-9.]*G\|[0-9]\{3,\}M\)' | sort -h |
This file contains hidden or 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
/** | |
* Returns the version of Internet Explorer or a -1 | |
* (indicating the use of another browser). | |
*/ | |
function getInternetExplorerVersion() | |
{ | |
var rv = -1; // Return value assumes failure. | |
if (navigator.appName == 'Microsoft Internet Explorer') | |
{ | |
var ua = navigator.userAgent; |
This file contains hidden or 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
# $1 below refers to whatever filename you want removed from the repository | |
git filter-branch --index-filter "git rm --cached --ignore-unmatch $1" --prune-empty -- --all |
This file contains hidden or 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
# Runs the last command with sudo if you curse at your terminal. | |
# | |
# $ whoami | |
# adam | |
# $ how about now, motherfucker? | |
# root | |
# | |
debug_trap () { | |
re="(fuck|shit)" | |
if [[ $BASH_COMMAND =~ $re ]]; then |
This file contains hidden or 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 | |
function whatismyip { | |
curl -s -L http://checkip.dyndns.com/ | sed -r 's/^.*\b([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})\b.*$/\1/' | |
} | |
MAILTO="[email protected]" | |
IP="$([ -f ip.txt ] && cat ip.txt)" | |
CURRIP="$(whatismyip)" |
This file contains hidden or 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 | |
dimensionses=( | |
"16x16" | |
"32x32" | |
"64x64" | |
) | |
for dim in ${dimensionses[@]}; do | |
# separate filename and extension |
OlderNewer