This file contains 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 python | |
# log-default-2012-11-17.py | |
# IPython automatic logging file | |
# 17:33:23 | |
# ================================= | |
# ================================= | |
# 17:35:06 | |
# ================================= | |
# ================================= | |
# 17:36:39 |
This file contains 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/python2 | |
import sys, subprocess, os | |
from subprocess import PIPE, Popen | |
from threading import Thread | |
from Queue import Queue, Empty | |
def enqueue_output(out, queue): | |
for line in iter(out.readline, b''): | |
queue.put(line) |
This file contains 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
# All the configuration is done on the file | |
# It attempts to download tracks based on id, which I assume it's automatically incremented | |
# Very naive but it works | |
# Some of the code is based on code found in stackoverflow.com, all make it obvious in another revision | |
# TODO: Make the progress display better | |
import urllib2, lxml.html, traceback | |
from lxml.cssselect import CSSSelector | |
from sys import stdout |
This file contains 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
# Tint2 config file | |
# Generated by tintwizard (http://code.google.com/p/tintwizard/) | |
# For information on manually configuring tint2 see http://code.google.com/p/tint2/wiki/Configure | |
# Background definitions | |
# ID 1 | |
rounded = 0 | |
border_width = 2 | |
background_color = #000000 22 | |
border_color = #FFFFFF 6 |
This file contains 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
#! perl | |
# source: https://bbs.archlinux.org/viewtopic.php?pid=619931#p619931 | |
sub on_sel_grab { | |
my $query = quotemeta $_[0]->selection; | |
$query =~ s/\n/\\n/g; | |
$query =~ s/\r/\\r/g; | |
system( "echo -en " . $query . " | xsel -ibp" ); | |
} |
This file contains 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
# | |
# ~/.bashrc | |
# | |
# If not running interactively, don't do anything | |
[[ $- != *i* ]] && return | |
alias ls='ls --color=auto' | |
#PS1='[\u@\h \W]\$ ' | |
export PS1='\[\033[01;32m\]\u@\h \[\033[00;31m\]\W \$ \[\033[00m\]' |
This file contains 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
! transparency - true or false (default) | |
URxvt*transparent: false | |
URxvt.depth: 24 | |
URxvt.background: [75]#000000 | |
URxvt.cursorBlink: 1 | |
URxvt*saveLines: 12000 | |
URxvt*foreground: White |
This file contains 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/bash | |
fping -a -g 192.168.1.0/24 2> /dev/null |
This file contains 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
fdg test |
OlderNewer