Skip to content

Instantly share code, notes, and snippets.

@EspadaV8
EspadaV8 / Readable.js
Created February 16, 2012 23:59
TuxRadar create HTML audio tag
(function() {
function getScript(url,success){
var script=document.createElement('script');
script.src=url;
var head=document.getElementsByTagName('head')[0],
done=false;
// Attach handlers for all browsers
script.onload = script.onreadystatechange = function() {
if ( !done && (!this.readyState
|| this.readyState == 'loaded'
@EspadaV8
EspadaV8 / gist:1357237
Created November 11, 2011 05:04
Script to import Geonames into PostgreSQL taken from http://forum.geonames.org/gforum/posts/list/15/926.page
#!/bin/bash
#===============================================================================
#
# FILE: getgeo.sh
#
# USAGE: ./getgeo.sh
#
# DESCRIPTION: run the script so that the geodata will be downloaded and inserted into your
# database
#
@EspadaV8
EspadaV8 / mc-ssh.bash
Created July 18, 2011 05:12
Simple script to use minecraft over an SSH tunnel
#!/bin/bash
MCLAUNCHER="path/to/MinecraftLauncher.jar"
# Your SSH host, e.g. www.example.com
SSHHOST="<your-ssh-host>"
# Stores the controlmaster file. Need to enable controlpath in the ssh .config file
SOCKCTL="~/.mc-ssh-ctl"