Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@laranea
laranea / hb-test.py
Last active August 29, 2015 14:06 — forked from takeshixx/hb-test.py
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
@laranea
laranea / demo.py
Last active August 29, 2015 14:07 — forked from andylolz/demo.py
import election_data
from match import match
'''
Match BBC constituency names with TheyWorkForYou constituency names,
using MP name and party as extra queues
'''
twfy_data = election_data.get_twfy_data()
twfy_fields = ('party', 'name', 'constituency')
from ftplib import FTP
import ftplib
from datetime import datetime
import os
import pickle
FTP_SERVER = '83.247.110.3'
FTP_FOLDER = '/'
DESTINATION = '/volume1/Cluster/data/nl-traffic/'
#DESTINATION = 'out/'
@laranea
laranea / gulpfile.js
Created May 7, 2017 09:16 — forked from tlancina/gulpfile.js
A Gulpfile for Ionic 2 starters
/******************************************************************************
* Gulpfile
* Be sure to run `npm install` for `gulp` and the following tasks to be
* available from the command line. All tasks are run using `gulp taskName`.
******************************************************************************/
// node module imports
var gulp = require('gulp'),
webpack = require('webpack'),
sass = require('gulp-sass'),
@laranea
laranea / gulpfile.js
Created May 7, 2017 09:16 — forked from tlancina/gulpfile.js
A Gulpfile for Ionic 2 starters
/******************************************************************************
* Gulpfile
* Be sure to run `npm install` for `gulp` and the following tasks to be
* available from the command line. All tasks are run using `gulp taskName`.
******************************************************************************/
// node module imports
var gulp = require('gulp'),
webpack = require('webpack'),
sass = require('gulp-sass'),
@laranea
laranea / tmux-cheatsheet.markdown
Created June 27, 2017 20:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@laranea
laranea / tmux-cheatsheet.markdown
Created June 27, 2017 20:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@laranea
laranea / share-vpn.sh
Created August 16, 2017 14:41 — forked from ddm/share-vpn.sh
Share openvpn/tunnelblick connection on Mac OSX Sierra
#!/usr/bin/env bash
DIR=`dirname $0`
echo 'nat on en0 from $localnet to any -> (en0)' > $DIR/share-vpn.rules
sudo pfctl -f $DIR/share-vpn.rules -e
echo "Use 'sudo pfctl -F all' to clear NAT rules"
@laranea
laranea / keybase.md
Created February 13, 2018 12:34
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object: