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 | |
import Tkinter | |
FONT = ('courier new',24,'bold') | |
def main(): | |
mainWindow = Tkinter.Tk() | |
mainWindow.title("Color Preview") | |
mainFrame = Tkinter.Frame(mainWindow) |
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
#!/bin/bash | |
DEFAULT_RAM=768; | |
SNAPSHOT=""; | |
VGA="std"; | |
VMDIR="${HOME}/vm"; | |
VM="qemu-kvm"; | |
#AUDIO_DRV="sdl" | |
AUDIO_DRV="pa" | |
RAM=$DEFAULT_RAM; |
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
" .vimrc | |
" Smart tabbing / autoindenting | |
set undolevels=100 | |
set nocompatible | |
set autoindent | |
set smartindent | |
set smarttab | |
" Convert tabs to spaces | |
"set expandtab |
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
#!/bin/bash | |
# from http://www.linuxtutorialblog.com/post/solution-converting-flac-to-mp3 | |
OUT_DIR="./mp3" | |
[ ! -d ${OUT_DIR} ] && mkdir -p ${OUT_DIR} | |
# modify the lame options to your | |
# preference | |
lame_opts=" --vbr-new -V 2 -B 256 " |
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
pkgname=r-biobase | |
pkgver=2.6.1 | |
pkgrel=1 | |
pkgdesc="Biobase Library for the GNU R language" | |
arch=('i686' 'x86_64') | |
url="http://www.r-project.org/" | |
license=("Artistic-2.0") | |
depends=('r') | |
makedepends=('rpmextract') | |
source=(ftp://download.fedora.redhat.com/pub/fedora/linux/updates/12/SRPMS/R-Biobase-${pkgver}-1.fc12.src.rpm) |
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
<project name="PROJECT_NAME" basedir="." default="default"> | |
<property name="author" value="" /> | |
<property name="vendor" value="" /> | |
<property name="version" value="" /> | |
<property name="pkg_base" value="" /> | |
<property name="jar_dir" value="dist" /> | |
<property name="src_dir" value="src" /> | |
<property name="build_dir" value="build" /> | |
<property name="lib_dir" value="lib" /> | |
<property name="class_dir" value="${build_dir}/class" /> |
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
#!/bin/bash | |
userAgentList=( | |
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.86 Safari/533.4" | |
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3" | |
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" | |
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16" | |
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152;" | |
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)" | |
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20061201 Firefox/2.0.0.17 (Ubuntu-feisty)" |
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
#!/bin/bash | |
curl -s "https://www.archlinux.org/mirrorlist/?country=US&protocol=http&ip_version=4&use_mirror_status=on" | sed -e 's/^#Server/Server/' |
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
#!/bin/sh | |
dir=$1 | |
if [ -z $dir ]; then | |
dir="." | |
fi; | |
# create a temporary file name | |
TMPFILE="/tmp/$(echo -n "$dir" | md5sum | awk '{print $1}' | tr -d '\n')_$(date +%Y.%m.%d.%H.%M)_dupes.txt" |
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
<?php | |
function print_array($array) | |
{ | |
echo "<div style=\"font-family: 'Courier New', Courier, monospace; font-size: 12px;\">\n"; | |
print_array_recursive($array, ''); | |
echo "</div>\n"; | |
} | |
function print_array_recursive($array, $prefix) |
OlderNewer