Skip to content

Instantly share code, notes, and snippets.

@Gallefray
Gallefray / Evil assembly language
Last active August 29, 2015 13:57
Evil assembly language, courtesy of a talk I have had with antonijn
The general registers:
¹ ½ ¾
binary:
²
trinary:
³
push:
@Gallefray
Gallefray / gist:6718845
Created September 26, 2013 18:52
This is my Screencasting script for Manjaro Linux 0.8.7.1. AFAIK it also works on Arch Linux. Taken from this comment on YouTube: http://www.youtube.com/watch?v=BuKo0l3ZfEE&lc=KerskmjLKoaYF2fLbc9FmUvi3eDASKddJ_OA63puF7Y Modified slightly to make it extensible.
#!/bin/zsh
audiochannels=2
fps=15
inres=1280x1024
audiocodec=pcm_s16le
videocodec=libx264
preset=ultrafast
threads=0
outfile=output.mkv
@brodul
brodul / streaming.sh
Created July 25, 2012 19:39
Twitch.tv script for streaming
#! /bin/bash
# originaly from http://tinyurl.com/twitch-linux from taladan
# www.youtube.com/user/taladan
# gist created by brodul
INRES="1280x800" # input resolution
#OUTRES="1024x640" # Output resolution
OUTRES="800x500" # Output resolution
@ghedo
ghedo / sound_playback.c
Last active June 19, 2024 02:00
Simple sound playback using ALSA API and libasound
/*
* Simple sound playback using ALSA API and libasound.
*
* Compile:
* $ cc -o play sound_playback.c -lasound
*
* Usage:
* $ ./play <sample_rate> <channels> <seconds> < <file>
*
* Examples: