Skip to content

Instantly share code, notes, and snippets.

@barnaby
barnaby / .screenrc
Created September 27, 2020 10:30
screenrc file
startup_message off
# if we accidentally hangup, don't be all attached when we come back.
autodetach on
# more scrollbacks!
defscrollback 10000
# disable use of the "alternate" terminal
# thus allowing scrollbars to function as normal in
@barnaby
barnaby / gulpfile.js
Last active April 17, 2022 12:45
Takana and gulp.js playing nice
var gulp = require('gulp'),
takana = require('takana');
gulp.task('takana', function() {
takana.run({
path: __dirname,
includePaths: [] // Optional
});
});
@barnaby
barnaby / compiler.rb
Created February 22, 2013 17:20
Compile & execute Ruby as bytecode. Works in 1.9.3
#
#
# Compile & execute Ruby as bytecode
#
#
require 'rbconfig'
require 'dl'
require 'fiddle'
require 'strscan'