Skip to content

Instantly share code, notes, and snippets.

View craftzdog's full-sized avatar
๐Ÿ 
Working from home

Takuya Matsuyama craftzdog

๐Ÿ 
Working from home
View GitHub Profile
@craftzdog
craftzdog / check_all_iostat
Created April 28, 2013 06:44
This is a nagios plugin for monitoring all disk I/O stats.
#!/bin/bash
#
# Version 0.0.3 - Apr/2013
# Changes: summerize all disk I/O
#
# Version 0.0.2 - Jan/2009
# Changes: added device verification
#
# by Takuya Matsuyama - [email protected]
# by Thiago Varela - [email protected]
module CookbookLogrotate
DIRECTIVES = %w[
compress copy copytruncate daily dateext
delaycompress ifempty mailfirst maillast missingok
monthly nocompress nocopy nocopytruncate nocreate
nodelaycompress nodateext nomail nomissingok noolddir
nosharedscripts noshred notifempty sharedscripts shred
weekly yearly
]
@craftzdog
craftzdog / gist:4073071
Created November 14, 2012 16:19
my tmux conf
unbind C-b
set-option -g prefix C-t
#bind t send-key C-t
# basic settings
#set-option utf8-default on
#set-option -g mouse-select-pane
set-window-option -g mode-keys vi
#set-window-option -g utf8 on
# look'n feel
set-option -g status-fg cyan
@craftzdog
craftzdog / UIImage+Retina4.h
Created September 25, 2012 20:41 — forked from sserye/UIImage+Retina4.h
Swizzled UIImage imageNamed for iPhone 5
//
// UIImage+Retina4.h
// StunOMatic
//
// Created by Benjamin Stahlhood on 9/12/12.
// Updated by noradaiko on 9/26/12.
// Copyright (c) 2012 DS Media Labs. All rights reserved.
// Copyright (c) 2012 noradaiko. All rights reserved.
//