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/sh | |
# | |
# /etc/rc.d/init.d/supervisord | |
# | |
# Supervisor is a client/server system that | |
# allows its users to monitor and control a | |
# number of processes on UNIX-like operating | |
# systems. | |
# | |
# chkconfig: - 64 36 |
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
/Users/massat% perl -MData::Dumper -e 'my @array = [1,2,3]; warn Dumper @array; foreach (@array) { warn Dumper $_ };' | |
$VAR1 = [ | |
1, | |
2, | |
3 | |
]; | |
$VAR1 = [ | |
1, | |
2, | |
3 |
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/sh | |
TODAY=`date +%Y%m%d` | |
DIR="/path/to/dir" | |
DAYS=60 | |
find ${DIR} -type f -name '*.log' -daystart -mtime +${DAYS} | while read f; do | |
nice tar czfv ${f}.tgz --directory `dirname ${f}` `basename ${f}` | |
rm ${f} | |
done |
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
svn st | awk '/^?/ {print $2}' | xargs svn add |
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
--- Makefile 2013-02-16 13:35:19.248945750 +0000 | |
+++ Makefile_ 2013-02-16 13:34:44.700154473 +0000 | |
@@ -4,7 +4,7 @@ | |
PREFIX=/usr/local | |
BINDIR=$(PREFIX)/sbin | |
LCDIR=$(PREFIX)/lib/checkinstall/locale | |
-CONFDIR=$(PREFIX)/lib/checkinstall | |
+CONFDIR=$(PREFIX) | |
all: |
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
# | |
# Cookbook Name:: mysql | |
# Definition:: mysql_package | |
# | |
# Copyright 2013, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
define :mysql_package do |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |