Skip to content

Instantly share code, notes, and snippets.

{
"calls": {
"source": "/path/to/some/file.mp3",
"locations": {
"1": {
"start": "00:00:00",
"stop": "00:00:04"
}
"2": {
"start": "00:00:04",
@shapeshed
shapeshed / current.json
Last active December 25, 2015 14:19
Current config object
[
{
"name":"Star Trek",
"id":"200-1170-001",
"type":"video",
"url":[
"https://qa01-bingoui.bedegaming.net/bingoui/bede/assets/bingo/videos/bingoStars/startrek_advert.mp4",
"https://qa01-bingoui.bedegaming.net/bingoui/bede/assets/bingo/videos/bingoStars/startrek_advert.webm"
],
"length":30
@shapeshed
shapeshed / PKGBUILD
Created October 3, 2013 08:34
PKGBUILD for Vagrant 1.3.4
pkgname=vagrant
pkgver=1.3.4
pkgrel=1
pkgdesc="Tool for building and distributing virtualized development environments"
arch=('i686' 'x86_64')
url="http://vagrantup.com/"
license=('MIT')
options=(!strip)
depends=
_git_revision='0ac2a87388419b989c3c0d0318cc97df3b0ed27d'
xset +fp /usr/share/fonts/local
xset fp rehash
public_ip(){
echo `wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'`
}
NETWORKICON=`echo -e '\uE0AF'`
BATTERYICON=`echo -e '\uE037'`
CLOCKICON=`echo -e '\uE015'`
PACMANICON=`echo -e '\uE00F'`
@shapeshed
shapeshed / PKGBUILD
Created September 26, 2013 10:53
PKGBUILD for Vagrant 1.3.3
# Maintainer: Jochen Schalanda <jochen+aur@schalanda.name>
# Contributor: Mathieu Clabaut <mathieu.clabaut@gmail.com>
# Contributor: helios <aur@wiresphere.de>
pkgname=vagrant
pkgver=1.3.3
pkgrel=1
pkgdesc="Tool for building and distributing virtualized development environments"
arch=('i686' 'x86_64')
url="http://vagrantup.com/"
license=('MIT')
@shapeshed
shapeshed / ircreader.sh
Last active December 22, 2015 22:19
irc reader for ii
tail -f out | perl -pe 's/^[0-9-]* //g;s/<.*> /\e[0;34m$&\e[0m/g;'
@shapeshed
shapeshed / talk.md
Last active December 22, 2015 00:09
Hackference Talk

Embracing Chaos with JavaScript

George Ornbo @shapeshed

Hackference, Birmingham 30th August 2013

A brief history

@shapeshed
shapeshed / Messages per minute
Last active January 20, 2016 13:08
Mongo MapReduce
var map = function () {
if (this.event === 'user message') {
var datetime = new Date(this.timestamp);
var created_at_minute = new Date(datetime.getFullYear(),
datetime.getMonth(),
datetime.getDate(),
datetime.getHours(),
datetime.getMinutes());
emit(created_at_minute, {count: 1});
}
git rev-parse HEAD
8ae08b436531503aef7ddd82cb21641ecc55d78f
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'precise64'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
@shapeshed
shapeshed / rest.md
Last active December 16, 2015 15:49
Rest Workshop

REST Workshop

What is REST?

  • Roy Fielding
  • HTTP
  • Distributed data
  • Web APIs (GitHub, Twitter etc)

tl;dr