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 perl | |
use strict; | |
my $chars_str = '3456789ABCDEFGHJKMNPRSTUVWXY'; | |
my @chars = split //, $chars_str; | |
# a b c d | |
my $template = [ 0, 0, 0, 0, 0 ]; | |
my $dead_end = 0; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.lighttpd</string> | |
<key>ProgramArguments</key> | |
<array> |
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
@font-face { | |
font-family: 'gibsonregular'; | |
src: url('font/gibson-webfont.eot'); | |
src: url('font/gibson-webfont.eot?#iefix') format('embedded-opentype'), | |
url('font/gibson-webfont.woff') format('woff'), | |
url('font/gibson-webfont.ttf') format('truetype'), | |
url('font/gibson-webfont.svg#gibsonregular') format('svg'); | |
font-weight: normal; | |
font-style: normal; |
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 php | |
<?php | |
# dependencies: | |
# php curl extension | |
$usage = "USAGE: {$argv[0]} --client_id=... --privkey=... --url=... --method=... --ctype=... --body=...\n"; | |
$options = getopt('', array('client_id:', 'privkey:', 'url:', 'method:', 'ctype:', 'body:')); | |
$timeout = 60; |
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
" ============================================== | |
" Basics | |
set nocompatible " vi compatibility not a priority | |
set encoding=utf8 | |
set fileencoding=utf8 | |
set expandtab " foce convert tabs to spaces | |
set ts=4 " tabs are 4-space aparts |
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 | |
# vim: set ts=4 sw=4 et nu | |
set -e | |
usage="Usage: $0 <name>" | |
name=$1 | |
if [ -z "$name" ]; then | |
echo $usage | |
exit 1; | |
fi |
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
select | |
pcd.push_date, pci.priority, pci.content_automediaid, sum(pcir.started) run_started, sum(pcir.completed) run_completed, | |
pci.max_runs, stats_base, sum(pcir.stats_billed) stats_billed | |
from | |
push_cycle_day pcd inner | |
join push_cycle_item pci on (pcd.id=pci.push_cycle_day_id) | |
left outer join push_cycle_item_run pcir on (pci.id=pcir.push_cycle_item_id) | |
where | |
pcd.push_date=date(now()) | |
group by pci.id |
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
create a script like this | |
( mkdir /usr/local/scripts ) | |
/usr/local/scripts/generate_vmbr20.sh | |
modprobe -o dummy0 dummy1 | |
ifconfig dummy0 up | |
brctl addbr vmbr20 | |
brctl addif vmbr20 dummy0 | |
ifconfig vmbr20 up |
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
abstract (1.0.0) | |
actionmailer (3.0.7) | |
actionpack (3.0.7) | |
activemodel (3.0.7) | |
activerecord (3.0.7) | |
activeresource (3.0.7) | |
activesupport (3.0.7) | |
acts_as_commentable (3.0.1) | |
annotate (2.4.0) | |
archive-tar-minitar (0.5.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
#!/bin/bash | |
# | |
# /etc/init.d/subversion | |
# | |
# Starts the Subversion Daemon | |
# | |
# chkconfig: 2345 90 10 | |
# description: Subversion Daemon | |