Skip to content

Instantly share code, notes, and snippets.

@hdodov
hdodov / nomin.htaccess
Last active November 20, 2017 04:16
.htaccess file that allows you to visit a page with unminified versions of all files inside
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} \/nomin(\/|$)
RewriteRule (.+)\/nomin(.*) $1$2 [E=NO_MINIFICATION:1]
RewriteCond %{ENV:NO_MINIFICATION} 1 [OR]
RewriteCond %{ENV:REDIRECT_NO_MINIFICATION} 1
RewriteCond %{REQUEST_URI} (.+)\.min(\.[^.].*) [NC]
RewriteCond %{DOCUMENT_ROOT}/%1%2 -f
@hdodov
hdodov / cordova-release.md
Last active June 13, 2017 09:47
In-depth, step-by-step guide to building a Cordova release APK in Windows.
  1. Open CMD as administartor
  2. Go to your JDK's bin folder:
C:\Program Files\Java\jdk1.8.0_121\bin
  1. Run:
keytool -genkey -v -keystore C:\myKeystoreName.keystore -alias myName -keyalg RSA -keysize 2048 -validity 10000
  1. Add a build.json file to your Cordova folder (where the platforms and www folders reside). It should look like this: