Skip to content

Instantly share code, notes, and snippets.

View pesblog's full-sized avatar

Noritaka Baba pesblog

View GitHub Profile
@pesblog
pesblog / moshInstall2AmazonAMI.sh
Created July 15, 2013 13:08
mosh install to AWS EC2 (Amazon AMI)
#!/bin/sh
sudo yum -y install autoconf automake gcc gcc-c++ make boost-devel zlib-devel ncurses-devel protobuf-devel openssl-devel
cd /usr/local/src
sudo wget http://mosh.mit.edu/mosh-1.2.4.tar.gz
sudo tar xvf mosh-1.2.4.tar.gz
cd mosh-1.2.4
sudo ./autogen.sh
sudo ./configure
sudo make
@pesblog
pesblog / private.xml
Last active December 20, 2015 10:49
<?xml version="1.0"?>
<root>
<list>
<item>
<name>baba</name>
<list>
<appdef>
<appname>TERMINAL</appname>
<equal>com.apple.Terminal</equal>
</appdef>
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
#!/bin/sh
# usage:
# $ curl -O https://gist.github.com/pesblog/6351515/raw/vagrant-setup.sh
# $ chmod 755 vagrant-setup.sh
# $ ./vagrant-setup.sh
finally() {
RET=$?
#!/bin/sh
# usage:
# $ curl -O https://gist.github.com/pesblog/6351740/raw/chef-setup.sh
# $ chmod 755 chef-setup.sh
# $ ./chef-setup.sh
if [[ -d '/opt/chef' ]]; then
echo "chef exists, already installed. finish"
exit 0
cd /some/where

vagrant init <boxName>
vagrant up
vagrant ssh-config --host <hostName> >> ~/.ssh/config

knife solo init <repoName>
cd <repoName>
git init

git add .

前提: scalaとplayはbrewでインストール済み

$ cd $$PROJECT_DIR$$
$ rm -rf .idea .idea_modules
$ play
[PROJECT_NAME] $ compile
[PROJECT_NAME] $ idea no-fsc no-sbt-build-module
  • Intellij IDEAでプロジェクトを開く
  • Play 2 のコメント欄の Ignore をクリック
set ignorecase
set smartcase
"カーソル位置の単語をyankする
nnoremap vv vawy
"Insert mode内でEmacsキーバインドを少々使う
inoremap <C-o> <Esc>o
inoremap <C-h> <BS>
gem install middleman
gem install middleman-slim
gem install stylus
middleman init foo -T slim
cd foo
vi Gemfile
+ gem "stylus"
vi config.rb
+ require 'slim'
cat trelloCard.json | jq '.actions[].data | select(has("text")) | .text'