- Xcodeをインストールする
- AppStoreからインストールする
- Command Line Tools for Xcodeをインストールする
- homebrew(Mac用のパッケージ管理システムの一つ)をインストールする
- homebrew-cask をインストールする
- brew, cask 経由で必要なアプリをインストールする
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
update | |
upgrade | |
tap homebrew/versions | |
tap caskroom/homebrew-versions | |
# install homebrew-cask | |
tap phinze/homebrew-cask | |
install brew-cask |
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 | |
OS_KEY_REPEAT=2 | |
OS_REPEAT_START=15 | |
# keyboard | |
defaults write NSGlobalDomain KeyRepeat -int $OS_KEY_REPEAT # キーリピート速度 | |
defaults write NSGlobalDomain InitialKeyRepeat -int $OS_REPEAT_START # キーリピート開始までの時間 | |
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false # キー代用入力を無効にする |
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 | |
# 事前準備 | |
sudo su - | |
sudo yum install make gcc-c++ | |
# PATHの追加 |
t1.micro で作成
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 | |
# @from http://blog.manaten.net/entry/645 | |
IMAGES='\.(gif|png|jpg)$' | |
BLOCK_FUNCS='(var_dump)\(' | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
against=HEAD |
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 | |
FROM="$1" | |
TO="$2" | |
SUBJECT="server stats for `hostname` on `date +\"%Y-%m-%d %H:%M:%S\"`" | |
if [ "$FROM" == '' -o "$TO" == '' ]; then | |
echo 'set FROM and TO address' | |
echo 'usage: $ mail-server-status from-address@example.com to-address@example.com' |
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
[alias] | |
l = log --graph --date=iso --name-status --pretty=format:\"%C(red)%h %C(green)%an %C(blue)%ad %Creset%s %C(yellow)%d%Creset\" | |
st = status | |
co = checkout | |
OlderNewer