Skip to content

Instantly share code, notes, and snippets.

View erikkallen's full-sized avatar

Erik Kallen erikkallen

View GitHub Profile
ser2net
sudo socat pty,link=/dev/tty.net,raw,echo=0,user=erikkallen,group=staff, tcp:10.0.1.50:3333

Keybase proof

I hereby claim:

  • I am erikkallen on github.
  • I am erikkallen (https://keybase.io/erikkallen) on keybase.
  • I have a public key whose fingerprint is 89FC 9234 4CFF CDDA 92E5 25F6 AACD F8F9 548F 6039

To claim this, I am signing this object:

@erikkallen
erikkallen / wavedeinterlace
Created August 21, 2012 13:35
Convert a wave file that has for some odd reason both stereo channels interlaced on the left channel and an empty right channel
require 'rubygems'
require 'wav-file'
f = open("test_48khz_c2_s32_le_stereo_on_ch1.wav")
format = WavFile::readFormat(f)
dataChunk = WavFile::readDataChunk(f)
f.close
puts format
@erikkallen
erikkallen / rbenv-install-system-wide.sh
Created October 18, 2011 14:45
rbenv install and system wide install on Ubuntu 10.04 LTS.
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential
apt-get -y install git-core
apt-get -y install curl
# Install rbenv
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv
@erikkallen
erikkallen / CircularBuffer.h
Created June 10, 2011 13:11 — forked from yagihiro/CircularBuffer.h
circular buffer library for Arduino (C++)
/*
CircularBuffer.h - circular buffer library for Arduino.
Copyright (c) 2009 Hiroki Yagita.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to