Skip to content

Instantly share code, notes, and snippets.

View kr1sp1n's full-sized avatar

Krispin Schulz kr1sp1n

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kr1sp1n on github.
  • I am kr1sp1n (https://keybase.io/kr1sp1n) on keybase.
  • I have a public key ASC_ykfOKfSyFkt7SCNwLpMMYf-Tx8TS7jJuRX7OV6Svugo

To claim this, I am signing this object:

@kr1sp1n
kr1sp1n / Dockerfile
Created September 29, 2017 14:02
Multi-Stage-Dockerfile
# See: https://codefresh.io/blog/node_docker_multistage/
#
# ---- Base Node ----
FROM alpine:3.5 AS base
# install node
RUN apk add --no-cache nodejs-current tini
# set working directory
WORKDIR /root/chat
# Set tini as entrypoint
ENTRYPOINT ["/sbin/tini", "--"]
find . -name "node_modules" -type d -exec rm -rf '{}' +
@kr1sp1n
kr1sp1n / index.js
Created July 26, 2016 23:01 — forked from mafintosh/index.js
dat stats demo that plays sintel.mp4
var swarm = require('hyperdrive-archive-swarm')
var hyperdrive = require('hyperdrive')
var stats = require('hypercore-stats-ui')
var http = require('http')
var memdb = require('memdb')
var serve = require('hyperdrive-http')
var drive = hyperdrive(memdb())
// a remote dat
@kr1sp1n
kr1sp1n / generatehostsfile.sh
Last active June 24, 2016 20:11 — forked from adionditsak/generatehostsfile.sh
Generate hosts file with AWS ec2 private IP's
#!/bin/bash
# Generate hosts-file with private IP's in AWS ec2
# you need to install jq and aws cli
# Vars
hosts_file="/etc/hosts"
region="eu-central-1"
profile=""
Verifying that +kr1sp1n is my blockchain ID. https://onename.com/kr1sp1n
@kr1sp1n
kr1sp1n / comfortable_mexican_sofa.rb
Created September 30, 2015 08:26 — forked from kirichkov/comfortable_mexican_sofa.rb
Comfortable Mexican Sofa v 1.12 fixture export workaround
# Add this content at the very end of config/initializers/comfortable_mexican_sofa.rb
# Monkey patch the fixture exporter
module ComfortableMexicanSofa::Fixture::File
class Exporter < ComfortableMexicanSofa::Fixture::Exporter
def export!
prepare_folder!(self.path)
self.site.files.each do |file|
file_path = File.join(self.path, file.file_file_name)
block = file.block

Keybase proof

I hereby claim:

  • I am kr1sp1n on github.
  • I am kr1sp1n (https://keybase.io/kr1sp1n) on keybase.
  • I have a public key whose fingerprint is 41E5 82B8 59F1 0A81 3F6E CBA5 0338 1FE3 53D0 CB80

To claim this, I am signing this object:

input = process.stdin
output = process.stdout
alphabet = 'abcdefghijklmnopqrstuvwxyz'
input.resume()
input.setEncoding 'utf8'
decode = (x, letter)->
i = alphabet.indexOf letter.toLowerCase()
@kr1sp1n
kr1sp1n / cVim.rc
Last active August 29, 2015 14:13
cVim.rc
" Settings
set hud
set nosmoothscroll