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
mkdir remote-sync-check | |
cd remote-sync-check | |
git init --bare | |
git remote add origin1 /homge/GIT/sample-repo1.git | |
git remote add origin2 /homge/GIT/sample-repo2.git | |
git fetch --all | |
git ls-remote origin1 > ls-remote-origin1.txt | |
git ls-remote origin2 > ls-remote-origin2.txt | |
diff -u ls-remote-origin1.txt ls-remote-origin2.txt |
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
git clone --mirror /homge/GIT/sample-repo1.git | |
cd mirror-repo1 | |
git remote add origin2 /home/GIT/sample-repo2.git | |
git push origin2 --mirror |
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
[2013-01-22] | |
git checkout release-branch | |
git commit -m "commit1" | |
[2013-01-23] | |
git checkout topic-branch | |
git commit -m "commit2" | |
[2013-01-24] | |
git checkout release-branch | |
git merge topic-branch | |
(2013-01-23リリースのソフトで不具合発覚) |
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
diff --git a/hoge.tgz b/hoge.tgz | |
index 02ba93c..d0ce544 100644 | |
Binary files a/hoge.tgz and b/hoge.tgz differ |
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
(修正を導入したいリポジトリ内で) | |
git remote add FIXED_REPO {すでに修正を導入したリポジトリのURL} | |
git fetch FIXED_REPO | |
git cherry-pick {FIXED_REPO上のコミットのSHA1} | |
git push origin master |
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
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/select.h> | |
#include <sys/types.h> | |
#include <sys/uio.h> | |
#include <sys/event.h> | |
#include <sys/time.h> | |
#define COUNT 10000 | |
#define PIPE_NUM 100 |
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
sudo apt-get install virtualbox | |
sudo apt-get install vagrant |
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
$ ls -l | |
TARGET1/ | |
TARGET2/ | |
$ ln -fs TARGET1 LINK_NAME # 1回目は大丈夫 | |
$ ls -l | |
LINK_NAME -> TARGET1/ | |
TARGET1/ | |
TARGET2/ |
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
AC_INIT([test_package_name],[0.0.1]) # 初期化と、対象のパッケージのメタデータの設定。必須。 | |
AC_SUBST([variable], value) # configure時に@variable@をvariableの値で置換。 | |
# 今回はvariableが設定されていないので、 | |
# 第二引数のvalueに置換。 | |
AC_CONFIG_FILES([output]) # configureの対象となるファイルを設定。 | |
AC_OUTPUT # AC_CONFIG_FILESで設定したファイルを出力 | |
# 今回は'output.in'から'output'を生成 |
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
if (HTMLレンダリング前に実行が必要?) | |
→head tag without defer or async | |
else if (HTMLレンダリング後に実行が必要?) | |
if (他のJavaScriptとの依存関係はある?) | |
→body tagの最後 | |
else | |
→head tag with defer | |
else | |
if (他のJavaScriptとの依存関係はある?) | |
→body tagの最後 |
OlderNewer