Skip to content

Instantly share code, notes, and snippets.

View yannk's full-sized avatar

Yann Kerhervé yannk

  • San Francisco, CA, USA
View GitHub Profile
console full=yes
console address=127.0.0.1:4000
socket httpsock host=127.0.0.1
socket httpsock service=5000
proxy httpproxy cmd=perl -I/Users/miyagawa/dev/Nomo/lib /Users/miyagawa/dev/Nomo/bin/nomo-cfk-proxy.pl /Users/miyagawa/dev/Plack/eg/dot-psgi/Hello.psgi
proxy httpproxy service plack1 tie_stdin_to=httpsock
proxy httpproxy service plack2 tie_stdin_to=httpsock
console full=yes
console address=127.0.0.1:4000
socket httpsock host=127.0.0.1
socket httpsock service=5000
service plack cmd=perl -I/Users/miyagawa/dev/Nomo/lib /Users/miyagawa/dev/Nomo/bin/nomo /Users/miyagawa/dev/Plack/eg/dot-psgi/Hello.psgi
proxy httpproxy service plack tie_stdin_to=httpsock
command bind httpsock
#!/usr/bin/perl
use warnings;
use strict;
my @a = mysub();
my %hash = (
foo => scalar( my @b = mysub() ),
bar => scalar @a,
baz => scalar( mysub() ),
boo => scalar(@{[ mysub() ]}),
@yannk
yannk / .bashrc.sh
Created January 25, 2009 18:05 — forked from henrik/.bashrc
[plumbing] bash prompt integrating gist
# add in your .bashrc
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
# http://blog.cyberion.net/2009/01/improved-bash-prompt-for-git-usage.html
# username@Machine ~/dev/dir[master]$ # clean working directory
# username@Machine ~/dev/dir[master⚡]$ # dirty working directory
#
# I've made the following ajustements:
# - Use of plumbing, that should be faster than git status porcelain.
# - Don't show my repo as dirty if it has files unknown from the index (I always have).