Skip to content

Instantly share code, notes, and snippets.

View madssj's full-sized avatar

Mads Sülau Valstorp Jørgensen madssj

  • San Jose, United States
View GitHub Profile
@madssj
madssj / .vimrc
Last active August 29, 2015 14:17
Current .vimrc file
if has('vim_starting')
if &compatible
set nocompatible
endif
set runtimepath+=/Users/mads/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('/Users/mads/.vim/bundle'))
The new mirror selector doesn't work without the traling slash.
➜ ~ curl -iH 'Host: httpredir.debian.org' 5.153.231.35/debian/
HTTP/1.1 302 Found
Date: Wed, 22 Jul 2015 14:22:21 GMT
Location: http://mirror.easyspeedy.com/debian/
Content-Type: text/plain
X-Clacks-Overhead: GNU Terry Pratchett

Keybase proof

I hereby claim:

  • I am madssj on github.
  • I am madssj (https://keybase.io/madssj) on keybase.
  • I have a public key whose fingerprint is A8FF F2C5 7038 93A4 1435 C4B1 E12B 4C53 E051 13A1

To claim this, I am signing this object:

#include <openssl/ssl.h>
int main(int argc, char **argv) {
return 0;
}
@madssj
madssj / get_ips.sh
Created October 5, 2015 11:17
Returns the ip ranges of a given AWS service.
curl -s https://ip-ranges.amazonaws.com/ip-ranges.json|grep -B 2 CLOUDFRONT|grep -oE "\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}\b"