Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am planbnet on github.
* I am planb (https://keybase.io/planb) on keybase.
* I have a public key whose fingerprint is 101D 7B60 7CAB EDA5 58A6 6710 BAA9 5D2B 9415 1999
To claim this, I am signing this object:
@planbnet
planbnet / config.json
Created January 22, 2015 12:08 — forked from anonymous/config.json
Bootstrap Style
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 46.7%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#8dabc5",
"@brand-success": "#74a89d",
(?x)
\b
( # Capture 1: entire matched URL
(?:
[\w-]+: # URL protocol and colon
(?:
/{1,3} # 1-3 slashes
| # or
[[:alpha:][:digit:]] # Single letter or digit
# (Try not to match, say "URI::Escape")
#!/usr/bin/ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'rss/maker'
require 'syndication/atom'
require 'syndication/rss'
require 'syndication/content'
#!/usr/bin/perl
#generates a bookmarklet from a javascript file
#and outputs a html page to drag the link to the bookmark bar
#based on john grubers bookmarklet script:
#http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
// Bookmarklet to calculate the most generic xpath for the current selection
// (helper utility for scraping websites)
function selectionxpath() {
function calculateShortestXpathOfElement( sel ) {
var node = sel;
var nextId = null;
var stop = null;
var xpath = "";
#!/usr/bin/ruby
#
# This script installs to /usr/local only. To install elsewhere you can just
# untar http://github.com/mxcl/homebrew/tarball/master anywhere you like.
#
#
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several
# versions of OS X. I cannot verify that for sure, and it was tested on
@planbnet
planbnet / iphone_toolchain.sh
Created July 14, 2010 17:59
Very old iOS cross compile toolchain init script
export IPHONELIBS=/opt/iphone
export COMP_VERSION=4.0.1
export SDK_VERSION=3.0
export DEVROOT=/Developer/Platforms/iPhoneOS.platform/Developer
export SDKROOT=${DEVROOT}/SDKs/iPhoneOS${SDK_VERSION}.sdk
export BIN=${DEV}/usr/bin
export PATH=${BIN}:${PATH}
@planbnet
planbnet / .vimrc
Last active September 28, 2015 10:09
My .vimrc
scriptencoding utf-8
set encoding=utf-8
set nocompatible
""""""""""""""" SETUP VUNDLER """""""""""""""""""""""
if (filereadable($HOME."/.vim/bundle/vundle/autoload/vundle.vim"))
"(only if it's correctly installed)
filetype off
set rtp+=~/.vim/bundle/vundle/
:silent! call vundle#rc()
@planbnet
planbnet / InstallAirVideoServerDebian.sh
Created December 20, 2010 09:20
Air Video Server Install Script (Probably outdated)
INSTALL_DIR="/home/maicki"
FFMPEG_DIR="$INSTALL_DIR/ffmpeg"
PROPERTIE_FILE="$INSTALL_DIR/test.properties"
MEDIA="Movies:/home/maicki/Movies"
AIR_VIDEO_LINK="http://inmethod.com/air-video/download/linux/alpha4/AirVideoServerLinux.jar"
mkdir $INSTALL_DIR
cd $INSTALL_DIR