December 2010
7 posts
1 tag
finder(mac)
$ defaults write com.apple.finder AppleShowAllFiles true $ defaults write com.apple.desktopservices DSDontWriteNetworkStores true $ killall Finder
Dec 31st
1 tag
ruby rvm
$ sudo apt-get install ruby rubygems $ sudo gem install rvm $ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) $ vi ~/.bash_profile ----- if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi ----- $ rvm install 1.9.2 $ rvm use 1.9.2 --default $ gem install rails
Dec 30th
1 tag
nvm
$ sudo apt-get install build-essential libssl-dev pkg-config git-core $ git clone git://github.com/creationix/nvm.git ~/.nvm $ . ~/.nvm/nvm.sh $ nvm install v0.3.3 $ nvm use v0.3.3 $ vi .bash_profile ----- . ~/.nvm/nvm.sh nvm use v0.3.3 -----
Dec 30th
1 tag
BASIC AUTH
AuthUserFile /path/to/.htpasswd AuthGroupFile /dev/null AuthName "Secret Area" AuthType Basic require valid-user <Files ~ "^.(htpasswd|htaccess)$"> deny from all </Files>
Dec 14th
2 tags
awkで後ろから数える
$ awk '{print $(NF - 1)}' hoge.tsv
Dec 14th
2 tags
$ seq 1 10
for i in `seq 1 10`; do echo "${i}" done
Dec 13th
2 tags
$ arp -a
? (192.168.0.4) at xx:xx:xx:xx:xx:xx on en1 ifscope [ethernet] ? (192.168.0.6) at xx:xx:xx:xx:xx:xx on en1 ifscope [ethernet] ? (192.168.0.8) at xx:xx:xx:xx:xx:xx on en1 ifscope [ethernet] ? (192.168.0.255) at ff:ff:ff:ff:ff:ff on en1 ifscope [ethernet]
Dec 13th