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 | |
shopt -s expand_aliases | |
# バージョンだけをするためのコマンドエイリアス | |
alias cutcut="cut -d',' -f2 | cut -d' ' -f3 | head -n 1" | |
# 抽出 | |
CHANGE_LOG=`curl -s https://raw.github.com/joyent/node/master/ChangeLog | \egrep -e 'Version [0-9]+\.[0-9]+\.[0-9]+'`; |
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 | |
shopt -s expand_aliases | |
# エイリアス | |
alias cutcut="cut -d',' -f2 | cut -d' ' -f3 | head -n 1" | |
if [ `uname` = "Darwin" ]; then | |
alias echo='/bin/echo' | |
fi |
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
while read LINE; do | |
echo "${LINE}" | |
done < file.txt |
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
public final class MapUtil { | |
private MapUtil() {} | |
/** | |
* 2つの経緯度から距離を求める | |
* | |
* @param lat1 | |
* @param lng1 | |
* @param lat2 | |
* @param lng2 |
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
$ sudo wget -O /etc/yum.repo.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
$ sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | |
$ sudo yum install -y jenkins |
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 | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
mkdir -p ~/.rbenv/plugins | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo "export PATH=\"~/.rbenv/bin:~/.rbenv/shims:\$PATH\"" >> ~/.bash_profile | |
echo 'rbenv init - >> /dev/null' >> ~/.bash_profile |
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/sh | |
vagrant halt |
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
# VPC | |
resource "aws_vpc" "khasegawa" { | |
cidr_block = "10.0.0.0/16" | |
instance_tenancy = "default" | |
# ここが今回の話 | |
enable_dns_support = true | |
enable_dns_hostnames = true | |
} | |
# Gateway |
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
+bundle_install: | |
sh>: bundle install |
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
#Port 22 | |
Port 22222 |
OlderNewer