Skip to content

Instantly share code, notes, and snippets.

View arjupba's full-sized avatar

Arjun G arjupba

View GitHub Profile
Step 1: Combine All Certificates into a Single File
You should have received your SSL certificate via email in the form of a .zip file. Once you download and extract the file, you will see it consists of a server certificate, a root certificate, and an intermediate certificate.
The first step is to combine all three files into one.
diagram showing Combines certificates into a single SSL bundle file
You can do this manually, by copying and pasting the content of each file in a text editor and saving the new file under the name ssl-bundle.crt.
adb reverse tcp:8081 tcp:8081
sudo apt-get install openjdk-8-jdk
db.getCollection('itemlists').find({ $where: 'this.itemDesc.length < 5' })
@arjupba
arjupba / gist:30134ef37a23790909537417e0a9cfe2
Last active September 3, 2019 05:28
logcat package filter
adb logcat | grep -i "packagename"
adb logcat | grep -F "`adb shell ps | grep com.asanayoga.asanarebel | tr -s [:space:] ' ' | cut -d' ' -f2`"
@arjupba
arjupba / kill port
Created August 28, 2018 05:17
kill process based on network port
$ netstat -nlp | grep :8080
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 1073/node
$ kill 1073
$ kill -9 1073
@arjupba
arjupba / adbConnect.sh
Last active July 27, 2018 05:46
Connect adb debugging through network
# Connect android device in debug mode
adb devices
adb tcpip 5555
# Find device ip address
adb shell netcfg
adb shell ifconfig
adb connect 192.168.1.xxx:5555