Skip to content

Instantly share code, notes, and snippets.

public class Vocation
{
private long xp;
public readonly string PlayerName;
public int Level;
public long XP
{
get
{
#!/bin/bash
#
# install_ffmpeg
#
# Installs the latest ffmpeg and its dependencies on Debian Wheezy for the Raspberry Pi 2
# Inspired from https://gist.github.com/faleev/3435377
#
# Author: Beau Hastings <[email protected]>
if [ $(id -u) -ne 0 ]; then
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@hastinbe
hastinbe / gist:ba2017eb39b0f2e6e01f
Last active August 29, 2015 14:12
My bash prompt and simple aliases
#!/bin/bash
if [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
__has_parent_dir () {
# Utility function so we can test for things like .git/.hg without firing up a
# separate process
test -d "$1" && return 0;
@hastinbe
hastinbe / gist:6b0fe578585f55b1a16c
Created December 24, 2014 10:38
My color scheme for Terminator terminal emulator
# Color scheme configuration for Terminator terminal emulator (http://www.tenshu.net/terminator/ and https://launchpad.net/terminator)
#
# Copy the following lines within the [profiles] section of terminator configuration file at ~/.config/terminator/config
[[hastinbe]]
use_theme_colors = False
background_color = "#000000"
foreground_color = "#d9d9d9"
palette = "#000000:#cf3032:#32cf30:#cfcd30:#3032cf:#cd30cf:#30cfcd:#d9d9d9:#454545:#e28182:#82e281:#e2e081:#8182e2:#e081e2:#81e2e0:#ffffff"