Skip to content

Instantly share code, notes, and snippets.

View benjaminkitt's full-sized avatar

Benjamin Kitt benjaminkitt

View GitHub Profile
@benjaminkitt
benjaminkitt / node-0.10-dev.dockerfile
Last active November 23, 2015 16:19
Dockerfile for building a development container for node development
FROM node:0.10
MAINTAINER Benjamin Kitt "benjamin@benjaminkitt.com"
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:screencast' | chpasswd
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
@benjaminkitt
benjaminkitt / index.js
Created May 4, 2016 23:43
requirebin sketch
let builder = require('xmlbuilder')
let myObj = {
"nodeOne": {
"#text": "hello",
"@currency": "world"
},
"nodeTwo": [
"Bullet 1",
"Bullet 2",
"Bullet 3"
@benjaminkitt
benjaminkitt / 0_reuse_code.js
Created June 28, 2016 20:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am benjaminkitt on github.
  • I am benjaminkitt (https://keybase.io/benjaminkitt) on keybase.
  • I have a public key ASC46D4kU38Fq0f6pc0rZRLpNVSl5vP8zHycH4Iu9fIGawo

To claim this, I am signing this object: