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
open `git remote -v|grep origin|grep git@github|head -n1|sed -e 's#origin.*git@\(.*\)\:\(.*\).git.*#https:\/\/\1\/\2\/#'`tree/master/$(pwd |sed -e "s|`git rev-parse --show-toplevel`/||") |
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
[pharaohkj]$ defaults write com.apple.dock expose-animation-duration -float 0.15; killall Dock | |
[pharaohkj]$ defaults write com.apple.dock expose-animation-duration -int 0; killall Dock |
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
git checkout --orphan <new_branch> | |
git rm -rf . | |
<create document files> | |
git add . | |
git commit |
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
javascript:(function(){window.prompt('選択してコピーしてください','['+document.title+']'+'('+document.URL+')');})(); |
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
1002 yum list installed|grep java | |
1003 sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
1004 sudo rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key | |
1005 sudo yum install jenkins | |
1006 yum list installed|grep java | |
1007 sudo yum install java-1.7.0-openjdk | |
1008 java -version | |
1009 sudo yum install jenkins | |
1010 sudo service jenkins start | |
1011 sudo chkconfig jenkins on |
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
*filter | |
# INPUTチェイン宣言(全ての入力パケットを許可する) | |
:INPUT ACCEPT [0:0] | |
# FORWARDチェイン宣言(全ての転送パケットを許可する) | |
:FORWARD ACCEPT [0:0] | |
# OUTPUTチェイン宣言(全ての出力パケットを許可する) | |
:OUTPUT ACCEPT [0:0] | |
#Firewallのセッティング | |
:Firewall-setting1-INPUT - [0:0] |
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
2009 sudo apt-get remove jenkins | |
2010 cd tmp/ | |
2011 wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
2012 sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list' | |
2013 sudo apt-get update | |
2014 sudo apt-get install jenkins | |
2015 whoami | |
2016 ls /usr/share/jenkins/jenkins.war | |
2017 ls /usr/share/jenkins/jenkins.war -al | |
2018 ls /usr/share/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
## Redmineをアップデートしたら叩くmake | |
## make update | |
## としてくれ | |
# DBのアップデート | |
migration: | |
rake db:migrate RAILS_ENV="production" | |
# キャッシュの削除 | |
clean_cache: |
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
export NSPR_LOG_FILE=/tmp/smtplog.log | |
export NSPR_LOG_MODULES=IMAP:5,SMTP:5,POP3:5 | |
thunderbird | |
gvim /tmp/smtplog.log |
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
tr -dc A-Za-z0-9_ < /dev/urandom | head -c 12 | xargs |