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
javascript:(function(){prompt('Copy%20below!',document.getElementsByTagName('title')[0].innerHTML+'%20'+location.href);})(); |
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
cd PROJECT_TOP_DIRECTORY | |
rm -rf `find ./ -type d -name .svn ! -regex \.svn/. -print` |
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
cd PROJECT_TOP_DIRECTORY | |
svn add --force . | |
svn revert "build" --recursive | |
svn propset svn:ignore "build" . | |
svn revert Example.xcodeproj/*.mode1v3 | |
svn revert Example.xcodeproj/*.pbxuser | |
svn propedit svn:ignore Example.xcodeproj/ | |
*.mode1v3 | |
*.pbxuser | |
svn commit -m "New Xcode project" |
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
+ (UInt64)getEpochSeconds | |
{ | |
return (UInt64)floor(CFAbsoluteTimeGetCurrent() + kCFAbsoluteTimeIntervalSince1970); | |
} | |
+ (UInt64)getEpochMilliSeconds | |
{ | |
return (UInt64)floor((CFAbsoluteTimeGetCurrent() + kCFAbsoluteTimeIntervalSince1970) * 1000.0); | |
} |
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 <sys/sysctl.h> | |
/* | |
Return device model name. | |
Possible values: | |
"iPhone1,1" = iPhone 1G | |
"iPhone1,2" = iPhone 3G | |
"iPhone2,1" = iPhone 3GS | |
"iPhone3,1" = iPhone 4 | |
"iPhone3,3" = iPhone 4 (CDMA) |
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
$vi ~/.ssh/config | |
ServerAliveInterval 60 | |
Host HOST2 | |
User USER | |
ProxyCommand ssh USER@HOST1 nc -w 6000 HOST2 22 |
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
$ keytool -importkeystore -srckeystore MY_KEYSTORE_1.pfx -srcstoretype PKCS12 -destkeystore MY_KEYSTORE_2.jks | |
出力先キーストアのパスワードを入力してください: | |
新規パスワードを再入力してください: | |
ソースキーストアのパスワードを入力してください: | |
別名 XXX-XXX-XXX-XXX-XXX のエントリのインポートに成功しました。 | |
インポートコマンドが完了しました: 1 件のエントリのインポートが成功しました。0 件のエントリのインポートが失敗したか取り消されました |
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
$ keytool -changealias -keystore MY_KEYSTORE_2.jks -alias XXX-XXX-XXX-XXX-XXX -destalias MY_ALIAS |
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
$ keytool -list -keystore MY_KEYSTORE_2.jks | |
キーストアのタイプ: JKS | |
キーストアのプロバイダ: SUN | |
キーストアには 1 エントリが含まれます。 | |
MY_ALIAS, 2010/06/10, PrivateKeyEntry, | |
証明書のフィンガープリント (MD5): XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX |
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
$ jarsigner -keystore MY_KEYSTORE_2.jks TARGET.jar MY_ALIAS |
OlderNewer