@コマンドを表示しない-コマンドのエラーを無視する+just printオプション指定時でも実行する
MAKE_VERSIONGNU make のバージョン番号CURDIR現在実行しているmakeプロセスのカレントディレクトリ
| $T = @" | |
| using System; | |
| using System.Diagnostics; | |
| using System.Runtime.InteropServices; | |
| namespace Win32 | |
| { | |
| public static class SetupApi | |
| { | |
| // 1st form using a ClassGUID only, with Enumerator = IntPtr.Zero |
| sudo su | |
| echo deb https://apt.dockerproject.org/repo ubuntu-`cat /etc/lsb-release | grep DISTRIB_CODENAME | cut -d'=' -f2` main >> /etc/apt/sources.list.d/docker.list | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F76221572C52609D | |
| apt-get update | |
| apt-get purge lxc-docker* | |
| apt-get purge docker.io* | |
| apt-get install docker-engine | |
| exit |
| ;; geeknote ============================================================== | |
| (defun geeknote-mode () | |
| (interactive) | |
| (eshell-command "python ~/geeknote/geeknote.py settings --editor /Applications/Emacs.app/Contents/MacOS/bin/emacsclient") | |
| ) | |
| (defun geeknote-create (newnote) | |
| (interactive "sname: ") | |
| (eshell-command | |
| (format "python ~/geeknote/geeknote.py create --content WRITE --title %s" newnote)) |
| ### 非再帰的make(non-recursive make) | |
| # ソースファイルツリーが常に整頓されている前提 | |
| # 使っていないソースファイルが紛れ込まないようにしなければならない、その辺はGitで管理する | |
| # 内容的には "GNU Make 第3版、6章 大きなプロジェクトの管理" に載っているコードとほぼ同じ | |
| # | |
| ### 参考 | |
| #論文: "Recursive Make Considered Harmful" | |
| #http://miller.emu.id.au/pmiller/books/rmch/ | |
| #実際にnon-recursive makeを適用しているOSSプロダクト(OpenRADIUS)のMakefile解説(上記論文のサイトにもリンクが貼られている) | |
| #http://evbergen.home.xs4all.nl/nonrecursive-make.html |
| #!/bin/bash | |
| #This is AN Correspondence Authy SSH Command. | |
| if [ "$1" = vps ] ; then | |
| #Enable Authy Token. | |
| echo -n "Authy Token (not support SMS Token): " | |
| read authytoken | |
| AUTHY_TOKEN="$authytoken" sftp vps | |
| else | |
| #Disable Authy Token. | |
| sftp $1 |
| for i in `git branch -r|grep -v HEAD|grep -v master|sed 's:origin/::g'` | |
| do | |
| git checkout --track -b $i origin/$i | |
| done | |
| git checkout master |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |