start new:
tmux
start new with session name:
tmux new -s myname
| <?php | |
| /** | |
| * Answering: http://lists.automattic.com/pipermail/wp-hackers/2012-August/044119.html | |
| * By: Mike Schinkel - http://about.me/mikeschinkel | |
| */ | |
| add_action( 'parse_request', 'aeromaxx_parse_request' ); | |
| function aeromaxx_parse_request( $wp ) { | |
| if ( preg_match( '#^/(draw-results|ball-statistics)/game/([^/]+)/#', $_SERVER['REQUEST_URI'], $matches ) ) { | |
| $wp->query_vars = array( | |
| 'post_type' => $matches[1], // Assumes your post types are registered with same name as your URL slugs |
| ls -lrt $(node node_modules/.bin/browserify --list app/app.js) | awk '{print $5 " " $9}' | sort -n |
| #!/bin/sh | |
| rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/* | |
| cloud-init start 2>&1 > /dev/null | |
| cloud-init-cfg all final |
| client | |
| dev tun | |
| remote example.com | |
| resolv-retry infinite | |
| nobind | |
| persist-key | |
| persist-tun | |
| ca [inline] | |
| cert [inline] | |
| key [inline] |
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Image": { | |
| "Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
| "Update": "true" | |
| }, | |
| "Ports": [ | |
| { | |
| "ContainerPort": "443" | |
| } |