Lauri's notes

How to I set up my programming environment.



cygrunsrv –install php5 –path /usr/local/php-5.3.1/php-cgi.exe -a ‘-b’

add to ~/.bashrc

source /etc/bash_completion.d/git

export PS1='
\[\033[32m\]\u@\h \[\033[33m\w$(__git_ps1)\033[0m\]
$ '
export DISPLAY=

alias ui='cd /c/Code/yoga/web'
alias web='cd /c/Code/github/'

alias ssh-add='if ! kill -0 "$SSH_AGENT_PID" 2>/dev/null; then ssh-agent >~/ssh-agent-pid; fi; source ~/ssh-agent-pid; ssh-add'

alias ssh-sandy='ssh -oproxycommand="ssh -p 11822 lauri@ nc %h %p" '

alias runphp='/usr/local/php-5.3.1/php-cgi.exe -b &'
alias runwww='kill `cat /var/run/` 2>/dev/null; /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf'

alias diffmerge='/c/Box/soft/DiffMerge/DiffMerge.exe'
alias runx='XWin.exe -screen 0 -multiwindow -clipboard -xkblayout ee > /dev/null 2>&1 &'

prepare git

git config --global 'Lauri Rooden' 
git config --global <me>@<email>

h2. Notepad++ (“link”:


p(highlight_header). ( “download”:/notes/ )

/c/soft/npp/notepad++.exe -multiInst -notabbar -nosession -noPlugin "`cygpath -w "${1}"`"

DiffMerge (“link”:

Lighttpd (“link”:

fastcgi.server = ( ".php" =>( "localhost" =>("host" => "","port" => 9000, "docroot" => "C:\web", "allow-x-send-file" => "enable" )))

$HTTP["url"] =~ "^/(images)/" {
	proxy.server  = ( "" => ( 
		("host" => "", "port" => 8080 )
	) )

nginx (“link”:

as a webserver

php (“link”:

On FreeBSD:

pkg_add -r pkg-config
pkg_add -r libiconv
pkg_add -r libxml2



bzip2 -cd php-5.2.8.tar.bz2  | tar xf -
gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.8 -p1

cd php-5.2.8

./configure --enable-fastcgi --enable-fpm --with-pgsql
./configure --enable-memory-limit --with-layout=GNU --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --with-libxml-dir=/usr/local --enable-spl --with-regex=php --disable-cli --enable-fastcgi --enable-fpm --with-pgsql

make all install

“DropboxPath”: C:\soft\DropboxPath>DropboxPath.exe “C:\dropbox”

Tags: git, cygwin

Have an update or suggestion for this note? You can edit it and send me a pull request.

Since 2009 to 2015