Skip to content

Instantly share code, notes, and snippets.

@openback
openback / push_font.sh
Created July 26, 2009 03:34
A shell script that uses adb to push fonts onto the G1. Make sure adb is in your path.
#!/bin/bash
# make sure we have 1 or 2 arguments
if [ $# -ne 1 ] && [ $# -ne 2 ]; then
echo "usage: `basename $0` font [bold_font]"
exit 1
fi
adb devices|grep -w device > /dev/null
if [ $? -eq 1 ]; then
@openback
openback / move_doctors
Created June 8, 2011 16:50
Script to move classic Doctor Who episodes downloaded from zuko on Usenet to the proper directory on my HTPC
#!/bin/bash
#===============================================================================
#
# FILE: move_doctors
#
# USAGE: ./move_doctors
#
# DESCRIPTION: Script to move classic Doctor Who episodes downloaded from
# zuko on Usenet to the proper directory, named for proper
# identification by XBMC or Boxee. Extract each story into one
@openback
openback / iso2wbfs
Created August 11, 2011 02:08
Uses Wiimms ISO Tool to convert one or more Wii ISO into a WBFS file, properly named for use on non-WBFS partitions
#!/bin/bash
#===============================================================================
#
# FILE: iso2wbfs
#
# USAGE: ./iso2wbfs [option] FILE... [wbfs directory]
#
# DESCRIPTION: Uses wit to convert one or more Wii ISO into a WBFS file
# properly named for use on non-WBFS partitions.
#
@openback
openback / makeNES
Created August 15, 2011 15:47
Bash script to compile and assemble an NES ROM using loopy's asm6 and create files appropriate for burning to chips
#!/bin/bash
#===============================================================================
#
# FILE: makeNES
#
# USAGE: ./makeNES [options] [ASM [CHR [NES]]]
#
# DESCRIPTION: Bash script to compile and assemble an NES ROM using loopy's
# asm6 and create files appropriate for burning to chips
#
@openback
openback / MarginProxy.java
Created October 8, 2012 05:24
[android] Animate margins with ObjectAnimator
import android.view.View;
import android.view.ViewGroup.MarginLayoutParams;
/**
* Allows an ObjectAnimator to set/get margins of a view
*/
class MarginProxy {
private View mView;
public MarginProxy(View view) {
@openback
openback / gist:9312129
Created March 2, 2014 19:19
CLI tools
http://dev.yorhel.nl/ncdu
multitail
tpp Presentation ("PowerPoint") tool for terminal.
ack: http://beyondgrep.com/
cloc
@openback
openback / .serverless_plugins|stream-setter.js
Last active November 9, 2016 20:19
Serverless 1.1.0 Dynamo Stream attachment (Until getting outputs within serverless.yml works)
// jshint node: true, esversion: 6
'use strict';
const OUTPUT_NAME = 'MyTableStreamArn';
const FUNCTION_NAME = 'FUNCTIONNAMETOATTACHSTREAMTO';
class Deploy {
constructor(serverless, options) {
this.provider = 'aws';
this.serverless = serverless;
this.options = options;