Skip to content

Instantly share code, notes, and snippets.

View jbonhag's full-sized avatar
🌊

Jeff Bonhag jbonhag

🌊
  • America/New_York
View GitHub Profile
hexdump -v -e '/1 "%02X"' output.txt
<video style="display:none;" autoplay></video>
<img src="">
<canvas width="800" height="600" style="display:none;"></canvas>
<script>
var video = document.querySelector('video');
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
var localMediaStream = null;
require 'nokogiri'
require 'open-uri'
require_relative 'lib/thing'
pattern = ARGV[0]
urls = ARGV[1..-1]
thing = Thing.new
urls.each do |url|
@jbonhag
jbonhag / gist:a4e813758000858bdcb3
Created July 1, 2014 14:08
Remove file by an inode number
The -i option to ls displays the index number (inode) of each file:
ls -li
Use find command as follows to delete the file if the file has inode number 4063242:
$ find . -inum 4063242 -delete
OR
ruby -run -e httpd . -p 5000
Noise n => WvOut w => blackhole;
"noise.wav" => w.wavFilename;
3::second => now;
[216,2,4,2,[[1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1],[0,0,1,0,0,0,0,0,0,0,0,0,0
http://www.musicvault.com/aa-bondy/video/american-heart_1000099.html
http://www.musicvault.com/aa-bondy/video/im-so-lonesome-i-could-cry_1013972.html
http://www.musicvault.com/aa-bondy/video/john-the-revelator_1000088.html
http://www.musicvault.com/aa-bondy/video/killed-myself_1013971.html
http://www.musicvault.com/aa-bondy/video/killed-myself-when-i-was-young_1000110.html
http://www.musicvault.com/aa-bondy/video/oh-the-vampyre_1000102.html
http://www.musicvault.com/aa-bondy/video/oh-the-vampyre_1013968.html
http://www.musicvault.com/aa-bondy/video/rapture-sweet-rapture_1000091.html
http://www.musicvault.com/aa-bondy/video/theres-a-reason_1000093.html
http://www.musicvault.com/aa-bondy/video/vice-rag_1000107.html
@jbonhag
jbonhag / go
Last active August 29, 2015 14:03
seq -f "%02g" 99 | while read t; do sox -n ${t}.wav synth 8 pinknoise; done &&
drutil burn -audio .
1. Don't throw bouquets at me.
2. Don't please my folks too much.
3. Don't laugh at my jokes too much.
4. Don't sigh and gaze at me.
5. Don't start collecting things.