Skip to content

Instantly share code, notes, and snippets.

@ijin
ijin / passenger-management.rb
Created July 12, 2011 04:21 — forked from loopj/passenger-management.rb
Checks memory usage of all paseenger child process and kill if grows too large. Additionally kill off long running passengers to prevent memory leak issues (similar to the PassengerMaxRequests config variable in apache's passenger version, but works on bo
#!/usr/bin/env ruby
#
# Passenger management script
# By James Smith http://loopj.com
# Based heavily on a similar script by Jon Bettcher
#
# Check memory usage of all paseenger child process and kill if grows
# too large.
#
@ijin
ijin / gist:930293
Created April 20, 2011 03:48
cacti installation on Ubuntu 10.04
# Cacti setup
sudo apt-get install cacti cacti-spine
# templates
# memory
wget http://www.eric-a-hall.com/software/cacti-netsnmp-memory/cacti-netsnmp-memory.0.7.tar.gz
tar xvfz cacti-netsnmp-memory.0.7.tar.gz
cd cacti-netsnmp-memory/scripts
sudo chown root: ss_netsnmp_memory.php
sudo cp ss_netsnmp_memory.php /usr/share/cacti/site/scripts/
@ijin
ijin / config
Created March 23, 2011 02:41
asterisk
Host misc
User ubuntu
Hostname ec2-175-41-249-100.ap-northeast-1.compute.amazonaws.com
Host websv*
User ubuntu
ProxyCommand ssh -A misc nc %h %p
@ijin
ijin / config
Created March 20, 2011 12:56
nc test
Host misc
User ubuntu
Hostname ec2-175-41-249-100.ap-northeast-1.compute.amazonaws.com
Host dbmaster
User ubuntu
Hostname ec2-175-41-198-110.ap-northeast-1.compute.amazonaws.com
ProxyCommand ssh misc nc %h %p
@ijin
ijin / mount failiure
Created March 20, 2011 11:47
dev-d6rkaiz
init: ureadahead-other main process (478) terminated with status 4
An error occurred while mounting /mnt/s3
Press S to skip mounting or M for manual recovery
fuse: device not found, try 'modprobe fuse' first
mountall: mount /mnt/s3 [483] terminated with status 1
mountall: Filesystem could not be mounted: /mnt/s3
@ijin
ijin / sinsai ssh
Created March 18, 2011 11:04
sinsai .ssh/config
Host misc
Hostname ec2-175-41-249-100.ap-northeast-1.compute.amazonaws.com
User ubuntu
Host webdv
ProxyCommand ssh ec2-175-41-196-2.ap-northeast-1.compute.amazonaws.com nc %h %p
User ubuntu
@ijin
ijin / rvm_with_passenger.sh
Created March 7, 2011 12:13
installs rvm with passenger on Ubuntu
#!/bin/bash
#
# Ruby w/ Passenger Installer
#
# Michael H. Oshita (@ijin)
#
### ruby versions ####
RUBY_VERSION=
RUBY_DEFAULT=1.9.2
@ijin
ijin / redis-init
Created March 1, 2011 16:38
redis init script for Ubuntu
#! /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
# HAProxy configuration - haproxy-mysql-failover.cfg
global
log 127.0.0.1 local0
maxconn 4096
user haproxy
group haproxy
daemon
defaults
--- Redmine.pm 2010-06-29 14:35:18.567980004 +0900
+++ Redmine.pm.new 2010-06-29 15:32:11.528961555 +0900
@@ -93,6 +93,68 @@
And you need to upgrade at least reposman.rb (after r860).
+=head1 GIT SMART HTTP SUPPORT
+
+support for Redmine v0.8.1 based off of http://www.redmine.org/issues/4905
+