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
import java.util.ArrayList; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Map.Entry; | |
import org.apache.commons.beanutils.PropertyUtils; | |
/** | |
* JavaBeanをMapにディープdescribeします。PropertyUtils使って。 |
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
# imagemagick | |
brew install imagemagick --disable-openmp | |
すると色々怒られるので、 | |
sudo brew link libtiff | |
sudo brew link little-cms | |
sudo brew link jasper | |
sudo brew link imagemagick | |
sudo brew link jpeg | |
する |
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
cat <<EOF >> /etc/security/limits.conf | |
root soft nofile 65536 | |
root hard nofile 65536 | |
root soft stack 16384 | |
root hard stack 32768 | |
root soft nproc 16384 | |
root hard nproc 32768 | |
* soft nofile 65536 | |
* hard nofile 65536 |
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
Preference > JavaScript > Libraries | |
* Node.js vXX.XX Core Modules -> check | |
* Node.js Globals -> check |
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
# | |
# Cookbook Name:: base-vagrant | |
# Recipe:: nodebrew | |
# | |
# Copyright 2013, YOUR_COMPANY_NAME | |
# | |
# All rights reserved - Do Not Redistribute | |
# | |
# install nodebrew |
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 | |
set -e | |
JENKINS_HOME= | |
BACKUP_LOCAL_DIR=backup | |
RETENTION_DAYS=14 | |
TODAY=`date +'%Y-%m-%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
RBENV_DIR = "/usr/local/rbenv" | |
RUBY_VER = "1.9.3-p448" | |
# install packages | |
%w{ | |
gcc | |
gcc-c++ | |
openssl-devel | |
readline | |
readline-devel |
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
# mac | |
http://files.vagrantup.com/packages/b12c7e8814171c1295ef82416ffe51e8a168a244/Vagrant-1.3.1.dmg | |
# linux | |
sudo yum localinstall http://files.vagrantup.com/packages/b12c7e8814171c1295ef82416ffe51e8a168a244/vagrant_1.3.1_x86_64.rpm | |
vagrant box add centos6.3 http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.3-x86_64-v20130101.box | |
mkdir -p ~/vagrant/repos/centos6.3 | |
cd ~/vagrant/repos/centos6.3 |
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
if (UnicodeBlock.of(character) == UnicodeBlock.ARABIC) { | |
// | |
} |
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 | |
set -e | |
URL=${1} | |
while : ;do | |
DATE_OUT=`date +"%Y/%m/%d-%k:%M:%S"` | |
CURL_OUT=`curl -w 'http_code\t%{http_code}\ttotal\t%{time_total}\tconnect\t%{time_connect}\tstarttransfer\t%{time_starttransfer}\n' "${URL}" -s -o /dev/null` | |
echo -e "${DATE_OUT}\t${CURL_OUT}" |
NewerOlder