This file contains hidden or 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/sh -e | |
# | |
# /etc/init.d/pickup: Start the pickup server | |
# | |
### BEGIN INIT INFO | |
# Provides: pickup | |
# Required-Start: $local_fs $syslog $remote_fs | |
# Required-Stop: $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains hidden or 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
# Start the autoscaler engine loop in a begin/rescue block | |
def start_autoscaler | |
@stopped = false | |
@heroku_manager = nil | |
while true do | |
begin | |
if @stopped | |
break | |
end | |
self.run_loop |
This file contains hidden or 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/env ruby | |
HELP = <<EOS | |
git-wtf displays the state of your repository in a readable, easy-to-scan | |
format. It's useful for getting a summary of how a branch relates to a remote | |
server, and for wrangling many topic branches. | |
git-wtf can show you: | |
- How a branch relates to the remote repo, if it's a tracking branch. | |
- How a branch relates to integration branches, if it's a feature branch. |
This file contains hidden or 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/env ruby | |
## git-publish-branch: a simple script to ease the unnecessarily complex | |
## task of "publishing" a branch, i.e., taking a local branch, creating a | |
## reference to it on a remote repo, and setting up the local branch to | |
## track the remote one, all in one go. you can even delete that remote | |
## reference. | |
## | |
## Usage: git publish-branch [-d] <branch> [repository] | |
## |
This file contains hidden or 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/env ruby | |
# cr: send an Asana ticket for code review | |
# It will add (or re-open) a sub-task called 'Code Review' owned | |
# by the specified user. | |
# Usage: | |
# cr [-a ASANA_ID] [-g GIT_COMMIT] username | |
# | |
# - If the Asana ticket ID is given, use that. |
This file contains hidden or 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 | |
# Play a Digitally Imported station via MPD | |
# | |
# Usage: | |
# di list | |
# di trance | |
# di breaks | |
# | |
# Config: |
This file contains hidden or 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 | |
DATADIR=/dev/shm/mysql | |
TMPDIR=/dev/shm/mysql_tmp | |
MYSQL_SOCKET=/dev/shm/mysql.sock | |
pkill -9 -f mysql.*datadir.*$DATADIR | |
mkdir -p $DATADIR |
This file contains hidden or 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
PRIMARY> db.summaryLogEvent.findOne({ organizationId: 242, day: "20130201" }) | |
{ | |
"_id" : ObjectId("510b0631b7458ea19c48ea32"), | |
"day" : "20130201", | |
"hours" : { | |
"0" : { | |
"minutes" : { | |
"0" : { | |
"h" : 70, | |
"h2" : 5, |
This file contains hidden or 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
Fri Feb 1 15:40:01 [conn1232539] update ctp.summaryLogEvent query: { organizationId: 242, day: "20130201" } update: { $inc: { hours.15.minutes.8.o: 1 } } nscanned:1 nupdated:1 keyUpdates:0 locks(micros) w:283655 141ms | |
Fri Feb 1 15:40:16 [conn1232171] update ctp.summaryLogEvent query: { organizationId: 308, day: "20130201" } update: { $inc: { hours.15.minutes.19.h: 1 } } nscanned:1 nupdated:1 keyUpdates:0 locks(micros) w:1154812 577ms | |
Fri Feb 1 15:40:21 [conn1232813] update ctp.summaryLogEvent query: { organizationId: 317, day: "20130201" } update: { $inc: { hours.15.minutes.29.o: 1 } } nscanned:1 nupdated:1 keyUpdates:0 locks(micros) w:553760 285ms | |
Fri Feb 1 15:40:22 [conn1232804] update ctp.summaryLogEvent query: { organizationId: 316, day: "20130201" } update: { $inc: { hours.15.minutes.21.o: 1 } } nscanned:1 nupdated:1 keyUpdates:0 locks(micros) w:2555236 1277ms | |
Fri Feb 1 15:40:24 [conn1232729] update ctp.summaryLogEvent query: { organizationId: 207, day: "20130201" } update: { $inc: { hours.15.minute |
This file contains hidden or 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
10.0.1.245 - - [04/Dec/2012:18:54:36 +0000] "POST /utility/j_spring_security_check HTTP/1.1" 302 2357 "https://qa-1-admin.energyhub.net/utility/autoLogout.html" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11" | |
10.0.1.245 - - [04/Dec/2012:18:54:37 +0000] "GET /utility/ HTTP/1.1" 302 437 "https://qa-1-admin.energyhub.net/utility/autoLogout.html" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11" | |
10.0.1.245 - - [04/Dec/2012:18:54:37 +0000] "GET /utility/login.html HTTP/1.1" 200 2404 "https://qa-1-admin.energyhub.net/utility/autoLogout.html" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11" | |
10.0.1.245 - - [04/Dec/2012:18:54:37 +0000] "GET /favicon.ico HTTP/1.1" 302 756 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11" | |
10.0.1.245 - - [04/Dec/2012:18:54:37 +0000] "GET /fa |