This configuration is not maintained anymore. You should think twice before using it, Breaking change and security issue will likely eventually happens as any abandonned project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import gtk | |
import os | |
import sys | |
if len(sys.argv) < 2: | |
print 'usage: dropme <path>' | |
sys.exit(1) | |
path = os.path.abspath(sys.argv[1]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Get an account on http://www.justin.tv/ | |
# 2. Copy streaming key from: http://www.justin.tv/broadcast/adv_other | |
# 2. Install VLC: http://www.videolan.org/vlc/ | |
# 3. Get Win/Mac/Lin Stream Client: \ | |
# http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API | |
# 4. Adjust the vlc parameters to your liking and run VLC like this | |
#!/bin/bash | |
cvlc screen:// \ | |
--screen-width 1576 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# A pre-commit hook for git to lint JavaScript files with jshint | |
# @see https://github.com/jshint/jshint/ | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ### | |
######################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
API_KEY="<twitch api key>" | |
FPS="15" | |
INRES="1920x1080" | |
OUTRES="1920x1080" | |
OFFSET="2560,0" | |
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+$OFFSET \ | |
-f alsa -ac 2 -i default -vcodec libx264 -s "$OUTRES" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
/** | |
* An iterator that flattens an iterator of iterators. | |
* | |
* Iterator SQUARED! | |
*/ | |
public class IteratorIterator<T> implements Iterator<T> { |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var total_players_online = 1903; | |
var current_players_online; | |
function update_players_online() | |
{ | |
if (!current_players_online) current_players_online = total_players_online; | |
var th = 0.4 + ( current_players_online - total_players_online ) / 200; | |
if (th<0) th=0; | |
if (th>1) th=1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g default-terminal "xterm-256color" | |
set-window-option -g xterm-keys on | |
run-shell "tmux setenv -g TMUX_VERSION $(tmux -V | cut -c 6-)" | |
setw -g mode-keys vi | |
unbind C-b | |
# remap prefix to Control + Space |
OlderNewer