Skip to content

Instantly share code, notes, and snippets.

@jasraj
jasraj / haproxy.cfg
Created January 9, 2017 11:10
HAProxy: Redirect "fake" SPA URLs to /, files (with extension) get passed through to Apache
# Redirect all fake URLs (that don't contain a .) to / (anything after ? is OK, but not sent to Apache)
# URL request format: GET /requested/url?optionalParams HTTP/1.1
reqirep ^([^\ ]*\ /)(([^.]*)|([^.]*\?.*))(\ .*)$ \1\5
@PuKoren
PuKoren / recompile-and-run.sh
Last active January 17, 2024 19:01
Recompile APK + Sign with apktool
# You must first install apktool (https://github.com/iBotPeaches/Apktool) and android SDK
# and decompile apk using it
# apktool d -rf my-app.apk
# then generate a key for sign in:
# keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
rm signed-app.apk
apktool b -f -d com.myapp
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore com.myapp/dist/com.myapp.apk alias_name
zipalign -v 4 com.myapp/dist/com.myapp.apk signed-app.apk
@staltz
staltz / introrx.md
Last active May 3, 2024 13:00
The introduction to Reactive Programming you've been missing