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
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"os" | |
"os/signal" | |
"syscall" | |
) |
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
package cache | |
import ( | |
"errors" | |
"math" | |
"sync" | |
"time" | |
) | |
type ByteCacher interface { |
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
package main | |
import ( | |
"expvar" | |
"io" | |
"io/ioutil" | |
"log" | |
"net/http" | |
_ "net/http/pprof" | |
"os" |
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
import Network.Socket | |
import System.IO | |
import Control.Monad | |
import Control.Monad.Fix (fix) | |
import Control.Concurrent | |
import Debug.Trace | |
import System.Log.Logger | |
import System.Log.Handler.Syslog | |
import System.Log.Handler.Simple | |
import Data.Conduit |
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 -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 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 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 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 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 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"; | |
} |
OlderNewer