Skip to content

Instantly share code, notes, and snippets.

View djeraseit's full-sized avatar
🎯
Focusing

Theodis Butler djeraseit

🎯
Focusing
View GitHub Profile
@djeraseit
djeraseit / doh-server-list.js
Last active September 7, 2024 07:26 — forked from likev/doh-server-list.js
Find quickest doh servers from list
//the list is created from https://github.com/curl/curl/wiki/DNS-over-HTTPS#publicly-available-servers
let dohs = ["https://adguard.abd.ong/dns-query",
"https://dns.abdullahabas.de/dns-query",
"https://abel.waringer-atg.de/dns-query",
"https://adl.adfilter.net/dns-query",
"https://per.adfilter.net/dns-query",
"https://syd.adfilter.net/dns-query",
"https://dns.adguard-dns.com/dns-query",
"https://family.adguard-dns.com/dns-query",
"https://unfiltered.adguard-dns.com/dns-query",
@djeraseit
djeraseit / list_bloatware.sh
Created September 7, 2024 06:11 — forked from martin-he543/list_bloatware.sh
List of Bloatware
package:com.hisense.hiphone.appstore
package:com.android.cts.priv.ctsshim
package:com.android.internal.display.cutout.emulation.corner
package:com.android.internal.display.cutout.emulation.double
package:com.android.providers.telephony
package:com.android.dynsystem
package:com.sprd.engineermode
package:com.android.einklauncher.plugin.memo
package:com.android.providers.calendar
package:com.android.providers.media
@djeraseit
djeraseit / tether.sh
Created September 7, 2024 05:51 — forked from FruitieX/tether.sh
#!/usr/bin/env bash
# enable USB tethering on an unrooted Android phone
PHONE_PIN=$(cat ~/.phone_pin)
$ADB shell <<SCRIPT
SCREEN_STATE=\$(dumpsys nfc | grep 'mScreenState=')
# unlock screen if needed
@djeraseit
djeraseit / upstart.sh
Created September 7, 2024 05:48 — forked from saltlakeryan/upstart.sh
vpn-reverse-tether upstart file.sh
#!/bin/bash
set -e
main() {
date
countdown
#check adb server running
ps aux | grep '^ro[o]t.*adb .*server'
@djeraseit
djeraseit / share_connection.sh
Created September 7, 2024 05:47 — forked from shouya/share_connection.sh
Share internet connection to android phone
#!/bin/sh
[ $UID = "0" ] || {
echo "Please run as root."
exit
}
[ $1 == '--help' ] && {
echo <<HERE
@djeraseit
djeraseit / adbToggleAirplane.sh
Created September 7, 2024 05:44 — forked from sebastiansommer/adbToggleAirplane.sh
Toggle airplane mode with adb and restart personal hotspot.
adb shell settings put global airplane_mode_on 1 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
sleep 15
adb shell settings put global airplane_mode_on 0 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
adb shell am start -n com.android.settings/.TetherSettings
adb shell input keyevent 20
adb shell input keyevent 66
#!/bin/bash
# Enable usb tethering by adb shell (works on Android 10, Honor 10 Lite)
# Additional links: https://android.stackexchange.com/questions/29954/is-it-possible-to-activate-the-usb-tethering-android-setting-from-the-command
# https://stackoverflow.com/questions/20226924/is-it-possible-to-usb-tether-an-android-device-using-adb-through-the-terminal/24346101
adb shell svc usb setFunctions rndis
@djeraseit
djeraseit / cnxsoft.md
Created November 6, 2021 21:54 — forked from stefanozanella/cnxsoft.md
Emulate a Raspberry Pi with Qemu+ KVM

Booting with CNXSoft image

Reference: http://www.cnx-software.com/2012/07/31/84-mb-minimal-raspbian-armhf-image-for-raspberry-pi/

curl -O https://dl.dropbox.com/u/45842273/2012-07-15-wheezy-raspian-minimal.img.7z

yum install p7zip
7za e 2012-07-15-wheezy-raspian-minimal.img.7z

qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda 2012-07-15-wheezy-raspian-minimal.img -net nic -net user -vnc :0 -net tap,ifname=vnet0,script=no,downscript=no
@djeraseit
djeraseit / firewall.user
Created November 6, 2021 18:53
OpenWRT Bridge Firewall Rules
# This file is interpreted as shell script.
# Put your custom iptables rules here, they will
# be executed with each firewall (re-)start.
# Internal uci firewall chains are flushed and recreated on reload, so
# put custom rules into the root chains e.g. INPUT or FORWARD or into the
# special user chains, e.g. input_wan_rule or postrouting_lan_rule.
# Comma seperated list of blocked tcp ports. These can be anything,
@djeraseit
djeraseit / ip6tables_setup.bash
Created November 6, 2021 18:26 — forked from velizarn/ip6tables_setup.bash
Basic setup for ip6tables - drop all traffic except local, ICMP and DHCPv6 traffic.
#!/bin/bash
# http://serverfault.com/questions/410321/debian-ip6tables-rules-setup-for-ipv6/410327#410327
# http://ipset.netfilter.org/iptables.man.html
# https://www.sixxs.net/wiki/IPv6_Firewalling
# https://www.cyberciti.biz/faq/ip6tables-ipv6-firewall-for-linux/
# https://gist.github.com/thomasfr/9712418
# https://gist.github.com/SnakeDrak/f4150f6e517e5a1d525f
# http://www.thegeekstuff.com/2011/06/iptables-rules-examples
# http://www.thegeekstuff.com/scripts/iptables-rules