Skip to content

Instantly share code, notes, and snippets.

View brammittendorff's full-sized avatar
😸
Check the facts, expose those cats

Bram Mittendorff brammittendorff

😸
Check the facts, expose those cats
View GitHub Profile
@brammittendorff
brammittendorff / falsehoods.md
Created April 18, 2016 10:13 — forked from wboykinm/falsehoods.md
Falsehoods programmers believe about addresses - by Michael Tandy

Falsehoods programmers believe about addresses

This is an anchor-linked version of the excellent, amazing original opus magnum by Michael Tandy.

An address will start with, or at least include, a building number.

Counterexample: Royal Opera House, Covent Garden, London, WC2E 9DD, United Kingdom.

When there is a building number, it will be all-numeric.

Counterexample: 1A Egmont Road, Middlesbrough, TS4 2HT

@brammittendorff
brammittendorff / README.md
Created March 16, 2016 11:38 — forked from Potherca/debug-bash-scripts.md
Sometimes you want to be able to debug a bash script. This gist gives an example of how to do this. Feedback welcome!

Introduction

Sometimes you want to be able to debug a bash script. Usually the -x option will suffice but sometimes something more sophisticated is needed.

In such instances using the DEBUG trap is often a good choice.

Attached to this gist is a example script to demonstrate how such a thing would work.

@brammittendorff
brammittendorff / JSRat.ps1
Created January 24, 2016 20:08
Fileless JavaScript Reverse HTTP Shell
<#
Author: Casey Smith @subTee
License: BSD3-Clause
.SYNOPSIS
Simple Reverse Shell over HTTP. Execute Commands on Client.
@brammittendorff
brammittendorff / whistle-encode.pl
Created January 4, 2016 12:16 — forked from windytan/whistle-encode.pl
whistle encoder
# windytan's pea whistle encoder
# http://www.windytan.com/2015/10/pea-whistle-steganography.html
use warnings;
use strict;
my $data = $ARGV[0] // "OHAI!";
my $outfile = "whistle.wav";
my $fs = 44100; # sample rate
my $fc = 2600; # whistle pitch