Skip to content

Instantly share code, notes, and snippets.

View rmhall's full-sized avatar
👁️
Pondering the infinite…

Robert M. Hall rmhall

👁️
Pondering the infinite…
View GitHub Profile
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
#!/bin/bash
#updated ffmpeg progress indicator
#by Rupert Plumridge
#for updates visit www.prupert.co.uk
#Creative Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England & Wales Licence
# Based on the ffmpegprogress bar from: http://handybashscripts.blogspot.com/2011/01/ffmpeg-with-progress-bar-re-work.html
# which was based on my initital progress script - circle of life and all that ;)
# version 2.0
# 07.04.2011
# now uses apparently better progress detection, based on duration of overall video and progress along the conversion
@kig
kig / gzip.js
Last active August 1, 2019 08:59
TarGZ = function(){};
// Load and parse archive, calls onload after loading all files.
TarGZ.load = function(url, onload, onstream, onerror) {
var o = new TarGZ();
o.onload = onload;
o.onerror = onerror;
o.onstream = onstream;
o.load(url);
return o;
@asbkar
asbkar / iscp.erl
Created June 23, 2010 07:16
Erlang program to control my Onkyo receiver
-module(iscp).
-author('Karl Erik Asbjørnsen <karl@asbjornsen.org>').
-define(IP, "10.0.0.222").
-define(PORT, 60128).
-define(ISCP_PREFIX, ["ISCP",0,0,0,16,0,0,0]).
-define(ISCP_MIDDLE, [1,0,0,0,"!1"]).
-define(END, 13).
-export([recv/1, start/0, m2/0]).
@shi11
shi11 / TwitterExample - Using Air HTML rather than Browser
Created July 14, 2010 21:56 — forked from srohde/TwitterExample.mxml
variation to srohde's example - uses Air.HTML window rather than a browser, and doesn't force the user to manually enter a pin following authentication.
<?xml version="1.0" encoding="utf-8"?>
<!-- Example app for github.com/srohde/Twitter -->
<s:WindowedApplication height="350" width="765"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:twitter="com.soenkerohde.twitter.*"
xmlns:mx1="library://ns.adobe.com/flex/mx"
currentState="initial"
creationComplete="creationCompleteHandler(event)">
@alotaiba
alotaiba / gist:913313
Created April 11, 2011 10:06
Using rsync to sync files to an Amazon EC2 instance using SSH key
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder
@catesandrew
catesandrew / buildSprite.sh
Created May 12, 2011 14:50 — forked from jaymzcd/buildSprite.sh
buildSprite using Imagemagick's montage.
#!/bin/bash
# uses imagemagick to stich together all images in a folder and
# then writes a css file with the correct offsets along with a
# test html page for verification that its all good
if [ $# -gt 0 ]
then
if [ $3 ]
@mixonic
mixonic / .gitignore
Created May 16, 2011 18:55
Mousy - A shared cursor for webpages using Node.js
node_modules
public/socket.io.min.js
public/jquery.js
@inspirit
inspirit / RNDMarsaglia.as
Created June 24, 2011 18:50
A 32-bit random number generator by George Marsaglia
var __x:uint = 123456789;
var __y:uint = 362436069;
var __z:uint = 21288629;
var __w:uint = 14921776;
var __c:uint = 0;
function rnd():uint
{
__x = __x + 545925293;
__y = __y ^ (__y<<13);
@ffub
ffub / gist:1084424
Created July 15, 2011 10:10
Balsamiq HTML export
#!/usr/bin/php
<?php
error_reporting(E_ALL);
if (count($argv) <= 1) {
print("usage createMockup src_dir dst_dir images_dir\n");
print("\tsrc_dir : dir where all bmml file are\n");
print("\tdst_dir : dir where write all html files\n");
print("\timages_dir : dir where all export mockup png are (will be copied to the \$dst_dir/images directory)\n");
exit(1);
}