Skip to content

Instantly share code, notes, and snippets.

Avatar

Benjamin Kitt benjaminkitt

View GitHub Profile
View keybase.md

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:

@benjaminkitt
benjaminkitt / 0_reuse_code.js
Created Jun 28, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View index.js
let builder = require('xmlbuilder')
let myObj = {
"nodeOne": {
"#text": "hello",
"@currency": "world"
},
"nodeTwo": [
"Bullet 1",
"Bullet 2",
"Bullet 3"
@benjaminkitt
benjaminkitt / node-0.10-dev.dockerfile
Last active Nov 23, 2015
Dockerfile for building a development container for node development
View node-0.10-dev.dockerfile
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