Skip to content

Instantly share code, notes, and snippets.

View sxander's full-sized avatar

Sascha Xander sxander

View GitHub Profile
/**
* Course: CSC345
* Due Date: 2009-10-07 23:59
*
* Purpose: Implement a B-tree as well as a range and fast range function.
*
* Not Implemented: I was only able to implement insert and in order traversal.
*/
import java.util.Arrays;
@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
# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/x-woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml
@thbar
thbar / _forward-agent-with-chef.rb
Created February 10, 2011 22:27
How to ssh forward your git deploy keys when deploying to a dedicated app user
# scenario:
# - you work from a dev account that has git authentication with keys in place
# - you use a sudoer account (first_user) to ssh and run chef on a server
# - the chef recipes deploy an application under a second_user
# - first_user and second_user don't have git keys in place and you want to use forwarding
# initial run (bootstrapping maybe)
include_recipe 'helper'
@chrisjacob
chrisjacob / README.md
Created February 14, 2011 14:31
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout - a step-by-step guide.

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).

@stran12
stran12 / gist:1394757
Created November 26, 2011 00:43
Step-by-step installation of cGit with Nginx

How to install cGit on Nginx (Ubuntu server)

Step-by-step installtion of cGit on nginx without funky rewrite rules.

Pre-requisites

This is for

@singpolyma
singpolyma / enc.sh
Created December 14, 2011 04:23
Convert WAV and TOC to FLAC
#!/bin/sh
# Copyright 2011, Stephen Paul Weber <singpolyma.net>
# You may use this code under the terms of an ISC License
# This script assumes a cdrdao TOC file with CD-TEXT in it named cd.toc
# It also assumes the front cover art is called cover.jpg
# It assumes track{TRACKNUMBER}.cdda.wav files (as generated by cdparanoia)
# The WAV files are encoded to FLAC with the TITLE, ARTIST, ALBUM, TRACKNUMBER, and ISRC set
# based on the CD-TEXT and ISRCs found on disc, and with front cover art set.
@ticean
ticean / SVN_Git_Mirror.md
Created January 3, 2012 21:14
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

git remote add --track master upstream git://github.com/upstreamname/projectname.git
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active June 5, 2024 22:16 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.