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
###################################### | |
# usage | |
# mylogin_dumper.pl ~/.mylogin.conf | |
###################################### | |
use strict; | |
use warnings; | |
use Crypt::ECB; | |
#use Crypt::OpenSSL::AES; | |
my $my_login_file = shift; |
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
/var/log/td-agent/*.log { | |
daily | |
rotate 10 | |
compress | |
delaycompress | |
notifempty | |
create 640 td-agent td-agent | |
sharedscripts | |
postrotate | |
pid=/var/run/td-agent/td-agent.pid |
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 | |
export PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH | |
# Passenger needs to find httpd for passenger-memory-stats | |
export HTTPD=/opt/nginx/sbin/nginx | |
source /usr/local/rbenv/completions/rbenv.bash | |
rbenv rehash | |
passenger-memory-stats $2 |
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 | |
def output_config | |
puts <<-END | |
graph_category passenger | |
graph_title status | |
graph_vlabel count | |
graph_info This graph shows how much passenger process are working, available and how much queries are waiting. | |
max.label max processes | |
max.draw AREA |
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 | |
export PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH | |
# Passenger needs to find httpd for passenger-memory-stats | |
export HTTPD=/opt/nginx/sbin/nginx | |
source /usr/local/rbenv/completions/rbenv.bash | |
rbenv rehash | |
COMMAND_END=${1:-status} |
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
# webdis | |
description "webdis control" | |
author "Michael H. Oshita" | |
#start on (local-filesystems and net-device-up IFACE=eth0) | |
start on redis | |
stop on shutdown | |
# monit does this |
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 | |
### BEGIN INIT INFO | |
# Provides: redis-server | |
# Required-Start: $syslog | |
# Required-Stop: $syslog | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: redis-server - Persistent key-value db |
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
description "Update source code" | |
start on filesystem | |
stop on shutdown | |
task | |
console output | |
script | |
time sudo -u deploy rsync -av --delete -e 'ssh -c arcfour -i /home/deploy/.ssh/id_dsa -o StrictHostKeyChecking=no' [email protected]:/usr/local/apps/project/ /usr/local/rails_apps/project >> /mnt/update.log 2>&1 |
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
{"No one tickets are rendered in /ticket/x":25} | |
{"No one tickets are rendered in /ticket/x":20} | |
{"No one tickets are rendered in /ticket/x":24} | |
{"No one tickets are rendered in /ticket/x":21} | |
Main Bench:agent bench command execute error, code:1 | |
GET failure response too many, success response: 87% |
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
$grep "POST" access_log | wc -l | |
960 | |
$ grep "GET /js/" access_log | wc -l | |
1663 | |
$ grep "GET /css/" access_log | wc -l | |
1113 | |
$ grep "GET /images/" access_log | wc -l | |
539 | |
$ grep "GET /ticket/" access_log | wc -l | |
1561 |