Skip to content

Instantly share code, notes, and snippets.

View rocco's full-sized avatar

Rocco Georgi rocco

View GitHub Profile
@rocco
rocco / changeallfonts.js
Created September 23, 2013 23:09
promt for a font and change all fonts-families on a website - jQuery needed
var useFont = window.prompt('Font:');
$('html *').each(function(){
this.style.setProperty('font-family', useFont, 'important');
});
@rocco
rocco / cordova-create-release
Last active August 29, 2015 14:05
cordova/phonegap: create android release apk
# you are in cordova project root folder
# create android release
# this also updated android project using values in config.xml
cordova build android --release
# sign the package
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore [your.keystore] platforms/android/ant-build/[AppName]-release-unsigned.apk [your alias]
# verify package, this must output "jar verified."
@rocco
rocco / cordova-keystore
Last active March 7, 2018 08:44
cordova/phonegap: create keystore (to sign apk)
# create keystore
keytool -genkey -v -keystore [somename].keystore -alias [somename] -keyalg RSA -keysize 2048 -validity 10000
# follow instructions
# to keep things simple, use [somename] for .keystore file name and alias too
# same for password: just press enter on this prompt:
# ---------------------------------------------------
# Enter key password for <[somename]>
# (RETURN if same as keystore password):
@rocco
rocco / cordova-adb-help
Last active January 11, 2021 05:05
cordova/phonegap: helpful adb stuff for android development
# list connected devices and emulators
# this outputs a list of attached/running [device-id]s
adb devices
# ----------------------------------------------------
# list all installed apps on device
# outputs all [package-id]s of installed apps
# from: http://stackoverflow.com/questions/4032960/how-do-i-get-an-apk-file-from-an-android-device#18003462

Keybase proof

I hereby claim:

  • I am rocco on github.
  • I am geeroc (https://keybase.io/geeroc) on keybase.
  • I have a public key ASABu1VDb3AwLhLpfwkxJ-UuwkDw9uzZYNrYyeHHM0S3VQo

To claim this, I am signing this object: