Skip to content

Instantly share code, notes, and snippets.

@boncey
boncey / whois.ascio.com
Created November 25, 2013 16:30
Response from 'whois.ascio.com' for domain 'boncey.com'
View whois.ascio.com
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: BONCEY.COM
Registrar: ASCIO TECHNOLOGIES, INC.
Whois Server: whois.ascio.com
@boncey
boncey / boxee-rename
Created March 14, 2013 09:28
Output commands to rename a series of video files according to input criteria
View boxee-rename
#!/usr/bin/env ruby
if ARGV.length < 4
print "Usage: rename-boxee <name> <series> <show> <files...>\n"
exit(-1)
end
name = ARGV.shift
series = ARGV.shift.to_i
show = ARGV.shift.to_i
@boncey
boncey / qmail-to-exim.rb
Created July 9, 2012 19:55
Rudimentary script to convert my qmail/vpopmail mail forwarding rules to exim
View qmail-to-exim.rb
#!/usr/bin/env ruby
def addr(file)
if (file =~ /.qmail-default/)
address = "*"
elsif (file =~ /.qmail-(.+)/)
address = $1
end
address
@boncey
boncey / gist:2428481
Created April 20, 2012 13:17
Slow transcode
View gist:2428481
nice -n19 ffmbc -threads 4 -i 'assets/UDF - XD50_11092680ea_Information&ArchivesNorth_c005173.mov' -t 300 -timecode 00:00:00:00 -vcodec mpeg2video -b 6000k -maxrate 6000k -r 25 -tff -flags +ilme+ildct -acodec pcm_s16le -ar 48000 -ac 1 -f mxf -y 'output/ffmbc-perf20120418-78542-1qtx7ps-1.mxf' -acodec pcm_s16le -ar 48000 -ac 1 -newaudio &> slow_tx.log
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101007600] clap center horizontal offset is not 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x101007600] clap center vertical offset is not 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'assets/UDF - XD50_11092680ea_Information&ArchivesNorth_c005173.mov':
Metadata:
major_brand: qt
@boncey
boncey / gist:2428474
Created April 20, 2012 13:16
Quick transcode
View gist:2428474
nice -n19 ffmbc -threads 4 -i 'assets/xdcam1080i50_4track.mov' -t 300 -timecode 00:00:00:00 -vcodec mpeg2video -b 6000k -maxrate 6000k -r 25 -tff -flags +ilme+ildct -acodec pcm_s16le -ar 48000 -ac 1 -f mxf -y 'output/ffmbc-perf20120418-78542-1qtx7ps-0.mxf' -acodec pcm_s16le -ar 48000 -ac 1 -newaudio &> quick_tx.log
FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'assets/xdcam1080i50_4track.mov':
Metadata:
major_brand: qt
minor_version: 537199360
compatible_brands: qt
@boncey
boncey / cleanup-unit-tests
Created January 31, 2012 10:47
Convert old-school unit tests to annotation style
View cleanup-unit-tests
var type = Find.typeByName("junit.framework.TestCase");
var references = SearchHelper.findSubClassesOf(type);
foreach(references, function(ref) {
var subTypeRef = ref.getElement();
var name = subTypeRef.getElementName();
var subType = Find.typeByName(name);
if (name == "TagsInterfaceTest") {