As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
SELECT author FROM author; | |
| author | | |
+-------------------+ | |
| "(1,'john doe')" | | |
+-------------------+ | |
| "(2,'Edgar')" | | |
+-------------------+ | |
SELECT | |
author.id, |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
#!/bin/bash | |
# <troll>If you don't have bash, go get a real OS.</troll> | |
curl -s "http://md5.noisette.ch/md5.php?hash=$(curl -s http://live.free.fr | gunzip | tail -n 36 | head -n 32 | grep '[a-f0-9]' -o | xargs echo -n | sed 's/ //g')" | grep '<string>' | sed 's/^.*\[CDATA\[\(.*\)\]\].*$/\1/' |
location /resize { | |
alias /tmp/nginx/resize; | |
set $width 150; | |
set $height 100; | |
set $dimens ""; | |
if ($uri ~* "^/resize_(\d+)x(\d+)/(.*)" ) { | |
set $width $1; | |
set $height $2; | |
set $image_path $3; |
include $(GOROOT)/src/Make.inc | |
PROTOFILES=$(wildcard *.proto) | |
GOPROTOFILES=$(patsubst %.proto,%.pb.go,$(PROTOFILES)) | |
TARG=protopackage | |
GOFILES=\ | |
$(GOPROTOFILES)\ | |
CLEANFILES+=$(GOPROTOFILES) |
server { | |
listen 80; | |
server_name server.mydomain.net | |
root /var/www/app/web; | |
index index.php; | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; |