This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSVPs Date | |
106 20120329 | |
3 20120329-Waitinglist | |
104 20120426 | |
93 20120531 | |
125 20120628 | |
110 20120726 | |
126 20120831 | |
65 20120925 | |
1 20120925 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do | |
kill -9 `echo $RANDOM` | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'http://www.meetup.com/ladevops/events/201936162/printrsvp/?pop=true&show_survey=1' | grep D_name |perl -pi -e 's/<span class.+>//g' |shuf |head -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo bye bye bye | |
sleep 0.5 | |
echo bye bye | |
sleep 0.2 | |
echo bye bye | |
sleep 0.2 | |
echo oh oh | |
echo nsync\'d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
apt-get install -y bluez-hcidump ruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Frame id: 24410, timestamp: 361046122, hands: 1, fingers: 5, tools: 0, gestures: 0 | |
Right hand, id: 6, palm position: (-112.191, 111.737, 52.8653) | |
pitch: 15.1425 degrees, roll: -12.2504 degrees, yaw: -1.47126 degrees | |
Arm direction: (-0.123611, 0.203058, -0.971333) wrist position: (-102.575, 100.338, 105.105) elbow position: (-69.4312, 45.8921, 3 | |
65.547) | |
Thumb finger, id: 60, length: 51.7551mm, width: 20.1096 | |
Metacarpal bone, start: (-132.391, 94.7399, 107.878), end: (-132.391, 94.7399, 107.878), direction: (0, 0, 0) | |
Proximal bone, start: (-132.391, 94.7399, 107.878), end: (-165.444, 98.2172, 71.098), direction: (0.666774, -0.0701479, 0.7419 | |
52) | |
Middle bone, start: (-165.444, 98.2172, 71.098), end: (-188.353, 100.842, 46.3038), direction: (0.676586, -0.0775056, 0.732273 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -w | |
require 'socket' | |
ctl=UNIXSocket.new("/tmp/proxystats") | |
ctl.puts "#{ARGV}" | |
while (line = ctl.gets) do | |
puts line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wet:~# chmod +x proxyctl | |
wet:~# ./proxyctl help | |
Unknown command. Please enter one of the following commands only : | |
clear counters : clear max statistics counters (add 'all' for all counters) help : this message prompt : toggle interactive mode with prompt quit : disconnect show info : report information about the running process show stat : report counters for each proxy and server show errors : report last request and response errors for each proxy show sess [id] : report the list of current sessions or dump this session get weight : report a server's current weight set weight : change a server's weight set timeout : change a timeout setting disable server : set a server in maintenance mode enable server : re-enable a server that was previously in maintenance mode | |
wet:~# | |
wet:~# # who's connected | |
wet:~# ./proxyctl "show sess" | |
0x8111a70: proto=tcpv4 src=82.41.169.69:49837 fe=http be=static srv=nginx_stellatus ts=04 age=1m1s calls=6 rq[f=1901000h,l=0,an=800h,rx=,wx=,ax=] rp[f=110010h,l=8030,an=100000h,rx=,wx=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wet:~# # remove a server from the rotation. takes the argument of backend/server | |
wet:~# ./proxyctl "disable server static/nginx_stellatus" | |
wet:~# | |
wet:~# # let's see the status of that server now. MAINT is, as you'd expect, maintenance mode | |
wet:~# ./proxyctl "show stat" |grep -i nginx_stellatus | |
static,nginx_stellatus,0,0,0,3,,966,368345,253599033,,0,,0,0,0,0,MAINT,1,1,0,1,0,297143,0,,1,4,3,,966,,2,0,,5,INI,,0,0,847,49,70,0,0,0,,,,124,1, |
OlderNewer