Skip to content

Instantly share code, notes, and snippets.

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
#!/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."
@addiedx44
addiedx44 / Makefile
Created April 3, 2013 02:24
Makefile skeleton
# set up directories
INCDIR = ./inc
SRCDIR = ./src
OBJDIR = ./obj
BINDIR = ./bin
# linux commands/flags
CC = gcc
CFLAGS = -Wall -I $(INCDIR)
@addiedx44
addiedx44 / randomkill.sh
Last active June 14, 2018 19:35
Kill a random process for funsies
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)
@addiedx44
addiedx44 / largefiles.sh
Last active January 24, 2018 15:19
List large files in order of size
sudo du -h / 2>/dev/null | grep '^\([0-9.]*G\|[0-9]\{3,\}M\)' | sort -h
@addiedx44
addiedx44 / getieversion.js
Created April 3, 2013 02:27
Gets IE version
/**
* 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;
@addiedx44
addiedx44 / damnatio-memoriae.sh
Created April 3, 2013 02:32
Removes a file from a git repository by rewriting history.
# $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
@addiedx44
addiedx44 / sudofuckshitstack.sh
Last active July 27, 2016 13:26
Runs the last command with sudo if you curse at your terminal. Add this to your .bashrc.
# 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
@addiedx44
addiedx44 / ip-checker.sh
Created June 21, 2013 13:24
Put this somewhere where you have permission to write.
#!/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)"
#!/bin/bash
dimensionses=(
"16x16"
"32x32"
"64x64"
)
for dim in ${dimensionses[@]}; do
# separate filename and extension