Do yourself a favor and login as root to save yourself some time and headaches:
$ sudo su -Install unattended-upgrades:
| # Get latest version from https://bitbucket.org/iBotPeaches/apktool/downloads | |
| export apktool_version=2.4.0 | |
| sudo -E sh -c 'wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$apktool_version.jar -O /usr/local/bin/apktool.jar' | |
| sudo chmod +r /usr/local/bin/apktool.jar | |
| sudo sh -c 'wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool' | |
| sudo chmod +x /usr/local/bin/apktool | |
| # To use: | |
| # apktool d TelephonyProvider.apk -o TelephonyProvider |
In Users/hugomatilla.bash_profile add
export PATH=$PATH:/Users/hugomatilla/Documents/AndroidSDKs/sdk/platform-tools
export PATH=$PATH:/Users/hugomatilla/Documents/AndroidSDKs/sdk/tools
cd /Users/hugomatilla/Documents/AndroidSDKs/sdk/platform-tools
| #!/bin/bash | |
| ############################################### | |
| # To use: | |
| # chmod +x install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| version=3.2.0 | |
| echo "*****************************************" | |
| echo " 1. Prerequisites: Install updates, set time zones, install GCC and make" |
| import logging, urllib2 | |
| import https | |
| client_cert_key = None # file path | |
| client_cert_pem = None #file path | |
| ca_certs = None # file path | |
| handlers = [] | |
| handlers.append( HTTPSClientAuthHandler( |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python. | |
| Usage:: | |
| ./dummy-web-server.py [<port>] | |
| Send a GET request:: | |
| curl http://localhost |