Skip to content

Instantly share code, notes, and snippets.

View funkatron's full-sized avatar

Ed Finkler funkatron

View GitHub Profile
body {
font-family: "Pet Me", monospace;
font-size: .9em;
}
.color_block {
float:left; width:100px; height:100px; padding:10px;
}
@ikwattro
ikwattro / bash.sh
Last active August 29, 2015 14:21
Simple sed script to deactivate neo4j auth
#!bin/bash
sed -i.bak 's/^\(dbms\.security\.auth_enabled=\).*/\1false/' ./conf/neo4j-server.properties
-- A script to have Paparazzi! <http://www.derailer.org/paparazzi/> take a screentshot
-- and save it.
-- by Benny Wong
-- 2008/10/02
--
-- Shamelessly adapted from <http://bbs.macscripter.net/viewtopic.php?pid=82666>
--
-- Usage:
-- $ osascript screenshotous.scpt URL FILENAME
--
@shapeshed
shapeshed / ee_disqus_exporter.rb
Created October 6, 2009 06:22
Import ExpressionEngine comments into Disqus
# Copyright 2009 Michael Ivey, released to public domain
# Disqus guts lifted from http://github.com/squeejee/disqus-sinatra-importer/tree/master
# I wanted it to run from MySQL and command line, instead of a Sinatra app
require 'rubygems'
require 'rest_client'
require 'json'
require 'sequel'
disqus_url = 'http://disqus.com/api'
@bytespider
bytespider / gist:785158
Created January 18, 2011 21:11
Appcelerator Titanium window drag
/*
Bullet Proof window drag
This is the most performant window dragging code
I could come up with. All the example on
developer.appcelerator.com we laggy
Version 2: More contained version
*/
@StanAngeloff
StanAngeloff / yoke.js
Created February 23, 2011 15:50
A drop-in, quick and dirty alternative to Sprockets
#!/usr/bin/env node
var fs = require('fs'),
path = require('path'),
options = {
verbose: false,
directories: ['.']
};
var includeFollowing = false;
@clayhinson
clayhinson / update_frapi_core.sh
Created March 17, 2011 18:37
updates frapi core while preserving a symlink to a self-managed custom/ folder
#!/bin/bash
#assumes working copy is a fork & upstream is set to git@github.com:frapi/frapi.git
# temporarily move custom symlink
mv src/frapi/custom src/frapi/custom_symlink &&
# reset any changes (i.e. deletion of custom folder)
git reset --hard &&
@funkatron
funkatron / spaz_api_methods.txt
Created March 29, 2011 03:45
Simple docs for Spaz Web APIs
# https://github.com/funkatron/Spaz-Web-APIs
#
# Avatar methods
#
# basic structure
# http://api.getspaz.com/avatar/:service/:username.:format
# :service is currently "identi.ca" or "twitter.com"
# :username is the username
# :format is "json", "xml" or "js" (jsonp. sorta). JSON is default
#
@tanob
tanob / gist:945821
Created April 28, 2011 04:46
AppleScript to open a new tab in iTerm2 from Finder
-- Stefan van den Oord, 2010-12-29
-- The "cd to" command for iTerm2
-- Original from: http://code.google.com/p/iterm2/wiki/AppleScript
-- Modified to open a new tab instead of a new window
tell application "Finder"
set _cwd to POSIX path of ((folder of (front window)) as alias)
end tell
tell application "iTerm"
<?php
// generate skip values
$skips = array();
for ($x=0; $x < 900; $x++) {
$skips[] = $x;
}
$skip = $skips[array_rand($skips)];