You can check here for getting the latest version. Change the wget url to download newer versions.
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
name: Minimal Android CI Workflow | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
jobs: |
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 | |
# Installing Android SDK | |
cd /opt | |
echo "Downloading Android SDK..." | |
wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | |
unzip sdk-tools-linux-3859397.zip -d android-sdk | |
rm sdk-tools-linux-3859397.zip |
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
deb http://http.kali.org/kali kali-rolling main contrib non-free | |
deb-src http://http.kali.org/kali kali-rolling main contrib non-free | |
#deb http://kali.cs.nctu.edu.tw/kali kali-rolling main non-free contrib |
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
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
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
final WifiManager mWifiManager = (WifiManager) getSystemService(WIFI_SERVICE); | |
if(mWifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED) { | |
// register WiFi scan results receiver | |
IntentFilter filter = new IntentFilter(); | |
filter.addAction(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION); | |
registerReceiver(new BroadcastReceiver(){ | |
@Override |