Skip to content

Instantly share code, notes, and snippets.

Avatar

Felix Rotthowe planbnet

View GitHub Profile
@planbnet
planbnet / config.json
Created Jan 22, 2015 — forked from anonymous/config.json
Bootstrap Style
View config.json
{
"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",
View gist:9748761
### 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 / .vimrc
Last active Sep 28, 2015
My .vimrc
View .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 / gnome-terminal-zenburn.sh
Created Dec 2, 2011
Zenburn color scheme for gnome-terminal
View gnome-terminal-zenburn.sh
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
@planbnet
planbnet / InstallAirVideoServerDebian.sh
Created Dec 20, 2010
Air Video Server Install Script (Probably outdated)
View InstallAirVideoServerDebian.sh
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
@planbnet
planbnet / iphone_toolchain.sh
Created Jul 14, 2010
Very old iOS cross compile toolchain init script
View iphone_toolchain.sh
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}
View install_homebrew.rb
#!/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
View genericxpath.js
// 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 = "";
View bookmarklet.pl
#!/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);
View gist:275574
#!/usr/bin/ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'rss/maker'
require 'syndication/atom'
require 'syndication/rss'
require 'syndication/content'