Skip to content

Instantly share code, notes, and snippets.

View wrl's full-sized avatar

william light wrl

View GitHub Profile
{
"version": 20150319,
"exported": {
"from": "0.3.1-a18ae86",
"on": "2015-07-08T00:54:31+0200"
},
"programs": [
{
"level": -6.0,
"note_logic": "poly",
@wrl
wrl / .Xefaults
Created December 12, 2011 22:05
xdefaults
XTerm*reverseVideo: true
XTerm*scrollBar: false
XTerm*metaSendsEscape: true
XTerm*termName: xterm-256color
XTerm*forceBoxChars: true
XTerm*font: -*-proggysquare-*-*-*-*-11-*-*-*-*-*-*-*
@wrl
wrl / artest.c
Created January 2, 2012 09:22
tty tester
/**
* $ gcc artest.c -o artest
* $ ./artest /dev/ttyUSB0
*/
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
@wrl
wrl / .xinitrc
Created December 20, 2012 02:52
#!/bin/sh
LATLON_BERLIN="52.302:13.2356"
LATLON_CHICAGO="41.894917:-87.632446"
REDSHIFT_CMDLINE="-l $LATLON_CHICAGO"
sh ~/.fehbg &
redshift $REDSHIFT_CMDLINE &
setxkbmap -option compose:caps &
! these are evilroot's colours: http://dotshare.it/dots/136/
! Black
*color0: #1B1D1E
*color8: #505354
! Red
*color1: #ff005f
*color9: #ff6767
! Green
*color2: #afd700
*color10: #8ce25d
#!/bin/sh
# ustream
USTREAM_KEY=""
STREAM_URL="rtmp://1.12617548.fme.ustream.tv/ustreamVideo/12617548/$USTREAM_KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
# livestream
#LIVESTREAM_USER=
#LIVESTREAM_PASSWORD
#URL="mogulus/vosonon/username=$LIVESTREAM_USER/password=$LIVESTREAM_PASSWORD/isAutoLive=true"
@wrl
wrl / womblack256.vim
Created February 20, 2013 21:17
nice dark vim colourscheme i've been modifying continuously over the years
" Generated by colorsupport.vim (DO NOT MODIFY THIS LINE)
hi clear
set background=dark
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "womblack256"
hi Normal guifg=#f6f3e8 guibg=NONE gui=none cterm=none ctermfg=15 ctermbg=NONE
hi SpecialKey gui=none guifg=Cyan guibg=none cterm=none ctermfg=51 ctermbg=none
hi NonText gui=bold guifg=Blue guibg=none cterm=bold ctermfg=21 ctermbg=none
@wrl
wrl / fb_status.c
Created March 8, 2013 00:29
tiny helper routine for pretty-printing glCheckFramebufferStatus()
static void fb_status(const char *where)
{
switch (glCheckFramebufferStatus(GL_FRAMEBUFFER)) {
case GL_FRAMEBUFFER_COMPLETE:
printf(" :: GL_FRAMEBUFFER_COMPLETE in %s\n", where);
break;
case GL_FRAMEBUFFER_UNDEFINED:
printf(" :: GL_FRAMEBUFFER_UNDEFINED in %s\n", where);
break;
@wrl
wrl / midi_mikro.c
Created April 30, 2013 23:14
maschine mikro -> midi translator
/**
* william light <wrl@illest.net> wrote this in 2012
*
* released under creative commons CC0
* http://creativecommons.org/publicdomain/zero/1.0/
*/
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#!/bin/sh
# ustream
STREAM_KEY=""
STREAM_URL="rtmp://1.12617548.fme.ustream.tv/ustreamVideo/12617548/$STREAM_KEY flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
# livestream
#LS_USER=
#LS_PASSWD=
#URL="mogulus/$LS_USER/username=$LS_USER/password=$LS_PASS/isAutoLive=true"