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 bash | |
git svn init svn://<host>/ \ | |
--trunk=<project>/trunk \ | |
--branches=<project>/branches \ | |
--tags=<project>/tags \ | |
project.git | |
cd project.git |
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 | |
# | |
# author : Sylvain Rabot <[email protected]> | |
# date : 29/03/2010 | |
# | |
# pre-commit hook script for PHP5 projects | |
# | |
# check PHP5 synthax of each modified files | |
# check tab/space indentation errors |
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
# trim lines containing only spaces or tabs | |
perl -pi -e "s/^(\s+|\t+)$/\n/i" * | |
# remove duplicate empty lines | |
perl -i -0777 -pe "s/^([^\n]+)\n+$/\$1\n/mg" * |
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
(* FROM OCAMLNET *) | |
(* $Id: netcgi_fcgi_10.ml 1062 2006-12-17 20:17:36Z gerd $ *) | |
open Unix | |
exception FCGI_error of string * exn | |
(* tuning paramaters *) | |
let bufsize = 100;; | |
(* maximum stdout/stderr record size *) |
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/perl | |
# | |
# author Daniel Dominik Rudnicki | |
# thanks to: Piotr Romanczuk | |
# email [email protected] | |
# version 0.4.3 | |
# webpage http://www.nginx.eu/ | |
# | |
# BASED @ http://wiki.codemongers.com/NginxSimpleCGI | |
# |
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
location ~ ^/php-fpm-(status|ping)$ { | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root/php-fpm-status; | |
include fastcgi_params; | |
} |
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 | |
tr -c "[:digit:]" " " < /dev/urandom | dd cbs=$COLUMNS conv=unblock | GREP_COLOR="1;32" grep --color "[^ ]" |
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 line can be amazing and so simple ( just a terminal! ) at the same time | |
# Show apps that use internet connection at the moment | |
lsof -P -i -n | |
# all parameters from latest command | |
!* | |
#edit current command line in your editor | |
<ctrl-x> <ctrl-e> |
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 sh | |
if test -f ~/.evolution/.running; then | |
echo >&2 "evolution is running, close it before running this script" | |
exit 1 | |
fi | |
for file in $(find ~/.evolution/ -type f -name \*.db); | |
do | |
mime=$(file $file | grep -i "SQLite") |
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
# SSH agent tweak for screen | |
export SSH_AUTH_SOCK_TMP=/tmp/$LOGNAME-ssh-agent.sock | |
# test link reference | |
if [ ! -e "$SSH_AUTH_SOCK_TMP" ]; then | |
# test that link exists | |
if [ -L "$SSH_AUTH_SOCK_TMP" ]; then | |
unlink $SSH_AUTH_SOCK_TMP | |
fi |
OlderNewer