Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher de Beer christopherdebeer

View GitHub Profile
@christopherdebeer
christopherdebeer / docker_alias.sh
Created January 16, 2015 11:53
Docker image and container management
View docker_alias.sh
alias drmi="docker rmi `docker images | awk '{ print $3; }'`"
alias drm="docker rm -v $(docker ps -a -q)"
View ffffound.coffee
fs = require('fs')
request = require('request')
cheerio = require('cheerio')
username = 'barumunk'
holdingPage = false
count = 0
for page in [0...99]
View keybase.md

Keybase proof

I hereby claim:

  • I am christopherdebeer on github.
  • I am c15r (https://keybase.io/c15r) on keybase.
  • I have a public key whose fingerprint is 4CA1 A441 EFB4 7D86 512A 60A1 84EB 4AB7 4CE5 7F94

To claim this, I am signing this object:

View easy-ubuntu-openvpn.sh
#!/bin/sh
# linux firewall/forwarding
modprobe iptable_nat
echo 1 | tee /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.10.10.1/2 -o eth0 -j MASQUERADE
# install openvpn
apt-get update && apt-get install -y openvpn
cd /etc/openvpn/
INSTANCE=$(curl http://169.254.169.254/latest/meta-data/public-hostname)
openvpn --genkey --secret ${INSTANCE}.key
@christopherdebeer
christopherdebeer / result.md
Created August 10, 2013 12:10
Periodic WIFI Scan
View result.md
Cell 01 - Address: C4:3D:C7:3B:12:34
          Quality=53/70  Signal level=-57 dBm
          ESSID:"MWR"
Cell 02 - Address: 2C:B0:5D:FB:67:F6
          Quality=33/70  Signal level=-77 dBm
          ESSID:"virginmedia1000829"
Cell 03 - Address: 5C:7D:5E:B6:69:00
          Quality=19/70  Signal level=-91 dBm
          ESSID:"TALKTALK-B668F8"

Cell 04 - Address: 7C:03:4C:A9:A0:36

@christopherdebeer
christopherdebeer / Person.coffee
Created August 5, 2013 10:50
Coffee Class getters and setters
View Person.coffee
class Person
get = (props) =>
@::__defineGetter__ name, func for name, func of props
set = (props) =>
@::__defineSetter__ name, func for name, func of props
get age: -> (Date.now() - @birthdate) / MILLIS_PER_YEAR
View adr-save
"{"version":1.2,"stores":{"wood":4421,"fur":19082,"bait":354,"meat":55,"teeth":144,"cloth":400,"scales":73,"leather":508,"cured meat":925,"torch":5,"bone spear":10,"rucksack":1,"waterskin":1,"charm":1,"l armour":1,"compass":1,"iron sword":0,"bolas":0,"iron":1127,"cask":1,"wagon":1,"coal":1349,"steel":627,"water tank":1,"steel sword":0,"convoy":1,"s armour":1,"bullets":5,"rifle":2,"grenade":1,"alien alloy":4},"perks":{"precise":true,"stealthy":true},"room":{"temperature":{"value":2,"text":"mild"},"fire":{"value":2,"text":"flickering"},"buttons":{"trap":true,"cart":true,"hut":true,"lodge":true,"trading post":true,"tannery":true,"smokehouse":true,"workshop":true,"torch":true,"waterskin":true,"rucksack":true,"l armour":true,"bone spear":true,"cask":true,"wagon":true,"i armour":true,"iron sword":true,"steelworks":true,"water tank":true,"convoy":true,"s armour":true,"steel sword":true},"builder":4},"outside":{"buildings":{"trap":10,"cart":1,"lodge":1,"hut":20,"trading post":1,"tannery":1,"smokehouse":1,"workshop":1
View gist:5869071
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
View frontendDevlopmentBookmarks.md
@christopherdebeer
christopherdebeer / install_redis.sh
Created June 13, 2013 14:25
redis install script for awsbox instance setup
View install_redis.sh
#!/usr/bin/env bash
wget http://redis.googlecode.com/files/redis-2.4.14.tar.gz
tar xvzf redis-2.4.14.tar.gz
cd redis-2.4.14
sudo make install
cd utils
sudo ln -s /usr/local/bin/redis-server /usr/bin/redis-server
sudo ./install_server.sh