start new:
tmux
start new with session name:
tmux new -s myname
#! /usr/bin/node | |
var MongoClient = require('mongodb').MongoClient | |
var Server = require('mongodb').Server; | |
var async = require('async'); | |
var util = require('util'); | |
// A simple linear congruence random number generator. | |
// This is anticipating doing a comparable test with the aggregation pipeline. | |
var randMod = 2 << 24; |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
export http_proxy= | |
export https_proxy= | |
curl -XDELETE 'http://localhost:9200/test/' | |
echo "Creating the mapping" | |
curl -XPUT 'http://localhost:9200/test/?pretty=1' -d ' | |
{ | |
"mappings" : { | |
"member" : { |
# | |
# my zsh theme with iTerm titlebar manip. | |
# see video to see the bug I have.. any help would be HUGELY appreciated :) | |
# http://youtu.be/U-h9XCCq0q4 | |
# | |
# also | |
# https://github.com/sjl/oh-my-zsh/ | |
# http://sage.ucsc.edu/xtal/iterm_tab_customization.html |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Box Shadow</title> | |
<style> | |
.box { | |
height: 150px; | |
width: 300px; | |
margin: 20px; |