Last active
December 21, 2015 22:09
-
-
Save t32k/6373492 to your computer and use it in GitHub Desktop.
わたし・よく・わすれる・こまんど・まとめ・おきば
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
# Check for SSH keys | |
cd ~/.ssh | |
ls | |
# Generate a new SSH key | |
ssh-keygen -t rsa -C "your_email@example.com" | |
# Copy | |
pbcopy < ~/.ssh/id_rsa.pub | |
# Attempts to ssh to github | |
ssh -T git@github.com | |
# コミット履歴 | |
git log --all --no-merges --since=yesterday --author="`git config --local user.name`" --pretty=format:' + %s' | cat | |
# GitのoriginのURL確認 | |
git remote -v | |
# Gitのoriginの向き先を変更 | |
git remote set-url origin [新しいリポジトリURL] | |
# ホスト名の変更 | |
sudo scutil --set HostName [新しいホスト名] | |
# Node.js v0.10.xの最新版をインストール | |
nvm install 0.10 | |
nvm alias default 0.10 | |
# コンフル形式変換 | |
gem install markdown2confluence | |
markdown2confluence <input file> | |
# インストール可能なRubyのバージョンを表示 | |
rbenv install -l | |
# Rubyのバージョンを変更 | |
rbenv global 1.9.3-p448 | |
# gh-pageとの同期 | |
# http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/ | |
git checkout gh-pages | |
git rebase master | |
git push origin gh-pages | |
git checkout master | |
g add . && g add -u . | |
git remote add origin git@github.com:xxxxxxxxxxxxxxxxxxxxxxxxxx | |
# Sync Sublime Text 2 Settings with Dropbox | |
cd ~/Library/Application\ Support/Sublime\ Text\ 2/ | |
ln -s ~/Dropbox/app/Sublime\ Text\ 2/Installed\ Packages ./Installed\ Packages | |
ln -s ~/Dropbox/app/Sublime\ Text\ 2/Packages ./Packages | |
ln -s ~/Dropbox/app/Sublime\ Text\ 2/Pristine\ Packages ./Pristine\ Packages |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment