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 -x | |
# WriteRoom command-line launcher by Sam Nguyen | |
# Made to be used with googlecl docs | |
# Works with svn rev 341 of googlecl | |
# | |
# usage: | |
# google docs edit --title "My title" --editor /path/to/writeroom-wrapper-googlecl.sh | |
######################################## |
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
# * * * * * command to be executed | |
# - - - - - | |
# | | | | | | |
# | | | | +- - - - day of week (0 - 6) (Sunday=0) | |
# | | | +- - - - - month (1 - 12) | |
# | | +- - - - - - day of month (1 - 31) | |
# | +- - - - - - - hour (0 - 23) | |
# +- - - - - - - - minute (0 - 59) |
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
Index: qcachegrind/qcgtoplevel.cpp | |
=================================================================== | |
--- qcachegrind/qcgtoplevel.cpp (revision 1155013) | |
+++ qcachegrind/qcgtoplevel.cpp (working copy) | |
@@ -792,7 +792,7 @@ | |
file = QFileDialog::getOpenFileName(this, | |
tr("Open Callgrind Data"), | |
_lastFile, | |
- tr("Callgrind Files (callgrind.*)")); | |
+ tr("Cachegrind Files (*cachegrind.*);;Callgrind Files (*callgrind.*);;All Files (*)")); |
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
### diff -ur daemontools-0.76.old/src/error.h daemontools-0.76/src/error.h | |
### via http://www.qmail.org/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch | |
### and http://whomwah.com/2008/11/04/installing-daemontools-on-centos5-x86_64/ | |
--- daemontools-0.76.old/src/error.h 2001-07-12 11:49:49.000000000 -0500 | |
+++ daemontools-0.76/src/error.h 2003-01-09 21:52:01.000000000 -0600 | |
@@ -3,7 +3,7 @@ | |
#ifndef ERROR_H | |
#define ERROR_H | |
-extern int errno; |
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 | |
# | |
# vsftpd This shell script takes care of starting and stopping | |
# standalone vsftpd. Customized to be used with CentOS 5.4 | |
# and Monit by creating PID files for each process | |
# | |
# chkconfig: - 60 50 | |
# description: Vsftpd is a ftp daemon, which is the program \ | |
# that answers incoming ftp service requests. | |
# processname: vsftpd |
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 | |
DIR=daemonize-src | |
[ -d $DIR ] || mkdir $DIR | |
cd $DIR | |
curl -L http://github.com/bmc/daemonize/tarball/release-1.6 | tar zxv | |
cd bmc-daemonize-* | |
./configure | |
make | |
sudo make install |
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
<?php | |
function message($text) { | |
printf('%-48s: ', $text); | |
} | |
function succeed($text = ' OK ') { | |
$esc = chr(27); | |
echo "[{$esc}[0;33m$text{$esc}[0m$esc" . "\]\n"; | |
} |
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
" Vim syntax file | |
" Language: Monit control file | |
" Maintainer: Sam Nguyen | |
" Latest Revision: 6 August 2010 | |
if exists("b:current_syntax") | |
finish | |
endif | |
syn keyword monitCommand set check include |
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
# _plugins/haml_converter.rb | |
module Jekyll | |
class HamlConverter < Converter | |
safe true | |
def setup | |
return if @setup | |
require 'haml' | |
@setup = true |
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
alias ll='ls -l' | |
alias lla='ls -la' | |
alias llh='ls -lh' |
OlderNewer