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
""" | |
converts pastor export tsv to KeePassX xml import | |
""" | |
import sys, time | |
from xml.sax.saxutils import * | |
header = """<!DOCTYPE KEEPASSX_DATABASE> | |
<database> | |
<group> | |
<title>Pastor Imports</title> |
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
String uri_str; | |
Uri uri = Uri.parse(uri_str); | |
Intent i = new Intent(Intent.ACTION_VIEW, uri); | |
startActivity(i); |
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
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"myKey"] |
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
public Scene onLoadScene() { | |
final Scene scene = new Scene(); | |
scene.setBackground(new ColorBackground(0.09804f, 0.6274f, 0.8784f)); | |
//TimerHandler(sec, autoReset, callback) | |
TimerHandler timerHandler = new TimerHandler(0.1f, true, this); | |
scene.registerUpdateHandler(timerHandler); | |
return scene; | |
} |
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
public List<ResolveInfo> getLauncheableActivityList(PackageManager packageManager) { | |
Intent intent = new Intent(Intent.ACTION_MAIN, null); | |
intent.addCategory(Intent.CATEGORY_LAUNCHER); | |
List<ResolveInfo> resolveInfoList = packageManager.queryIntentActivities(intent, 0); | |
return resolveInfoList; | |
} |
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
public int getVersionCode() { | |
int versionCode; | |
try { | |
PackageInfo pinfo = getPackageManager().getPackageInfo(getPackageName(), 0); | |
versionCode = pinfo.versionCode; | |
} catch (NameNotFoundException e) { | |
versionCode = -1; | |
} | |
return versionCode; | |
} |
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
pymongo | |
git+http://github.com/django-nonrel/mongodb-engine.git#egg=django_mongodb_engine | |
hg+http://bitbucket.org/wkornewald/django-nonrel#egg=Django | |
hg+http://bitbucket.org/wkornewald/djangotoolbox#egg=djangotoolbox |
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
1. removing sing from Android apk in the current directory/カレントディレクトリのapkから署名を削除する | |
find . -name '*.apk' -exec zip -d {} 'META-INF*' \; | |
2. signing Android apk in the current directory/カレントディレクトリのapkに署名をする | |
find . -name '*.apk' -exec jarsigner -verbose -keystore KEYSTORE_PATH -storepass KEYSTORE_PASSPHRASE {} ALIAS_NAME -keypass ALIAS_PASS \; | |
3. verifiyng signs/カレントディレクトリのapkの署名を検証する | |
find . -name '*.apk' -exec jarsigner -verify \; |
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
#1. removing sing from Android apk in the current directory/カレントディレクトリのapkから署名を削除する | |
find . -name '*.apk' -exec zip -d {} 'META-INF*' \; | |
#2. signing Android apk in the current directory/カレントディレクトリのapkに署名をする | |
find . -name '*.apk' -exec jarsigner -verbose -keystore KEYSTORE_PATH -storepass KEYSTORE_PASSPHRASE {} ALIAS_NAME -keypass ALIAS_PASS \; | |
#3. verifiyng signs/カレントディレクトリのapkの署名を検証する | |
find . -name '*.apk' -exec jarsigner -verify \; |
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 -genkey -alias ALIAS_NAME -keypass PASSWORD -keystore PATH_TO_KEYSTORE -validity DAYS |
OlderNewer