AutoML
This file contains hidden or 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
# Setup a build directory | |
mkdir ~/nginx-build && cd ~/nginx-build | |
# Backup nginx config files | |
sudo mkdir /etc/nginx-backup | |
sudo cp -r /etc/nginx/* /etc/nginx-backup | |
# Note down nginx version and details |
This file contains hidden or 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
#### | |
## Custom bash aliases | |
#### | |
## ubuntu house keeping | |
# restart wifi | |
alias wifi-fix='sudo service network-manager restart' |
This file contains hidden or 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
#!/bin/bash | |
# Update atom from downloaded deb file | |
rm -f /tmp/atom.deb | |
wget -o /tmp/atom.deb https://atom.io/download/deb | |
dpkg --install /tmp/atom.deb | |
echo "***** apm upgrade - to ensure we update all apm packages *****" | |
apm upgrade --confirm false |
This file contains hidden or 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
<script> | |
// inject inlined constants | |
angular.module('app.constants', []) | |
.constant('contextPath', '${pageContext.request.contextPath}'); | |
</script> |
This file contains hidden or 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
# Search for the apk's location on device | |
# adb shell pm list packages -f | grep "com.package.target" | |
# pull the apk from device | |
$ adb pull /data/app/target.apk ./target.apk | |
# decompile the apk | |
$ apktool d target.apk target-unpack-dir | |
# Make modifications to the APK |
This file contains hidden or 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
/** | |
* BitmapCache.java | |
* | |
* | |
* | |
*/ | |
package net.xxx.xxx.lib.server; | |
import android.graphics.Bitmap; | |
import android.support.v4.util.LruCache; |
This file contains hidden or 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
# Directories # | |
/build/ | |
/bin/ | |
target/ | |
# OS Files # | |
.DS_Store | |
*.class | |
This file contains hidden or 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
# List committed files that match updated ".gitignore" | |
$ git ls-files -i --exclude-from=.gitignore | |
# Remove those above files from the commit. | |
$ git rm --cached `git ls-files -i --exclude-from=.gitignore` |