Skip to content

Instantly share code, notes, and snippets.

View thewh1teagle's full-sized avatar
💭
coding

thewh1teagle

💭
coding
  • localhost
  • The martian
View GitHub Profile
@thewh1teagle
thewh1teagle / receiver.py
Last active October 1, 2022 17:41
Python socket broadcast sender and receiver
import socket
import os
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) # UDP
# Enable port reusage so we will be able to run multiple clients and servers on single (host, port).
# Do not use socket.SO_REUSEADDR except you using linux(kernel<3.9): goto https://stackoverflow.com/questions/14388706/how-do-so-reuseaddr-and-so-reuseport-differ for more information.
# For linux hosts all sockets that want to share the same address and port combination must belong to processes that share the same effective user ID!
# So, on linux(kernel>=3.9) you have to run multiple servers and clients under one user to share the same (host, port).
@thewh1teagle
thewh1teagle / locatimel.reg
Created November 16, 2020 23:06
Make windows using utc / local time by reg file.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=-
pactl load-module module-loopback latency_msec=1
pactl unload-module module-loopback
@thewh1teagle
thewh1teagle / keyboard.sh
Last active May 16, 2022 08:22
Termux additional buttons for keyboard
#!/bin/sh
mkdir $HOME/.termux/
echo "extra-keys = [ \ ['ESC','|','/','HOME','UP','END','PGUP','DEL'], \ ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN','BKSP'] \ ]" >> $HOME/.termux/termux.properties
termux-reload-settings
@thewh1teagle
thewh1teagle / gist:bbd324a13087e206fee2ef0b4db8753f
Created November 17, 2020 22:35
skip samsung setup wizard
adb shell settings put global setup_wizard_has_run 1
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
adb shell mv /system/system/priv-app/SamsungExperienceService/SamsungExperienceServic
e.apk /system/system/priv-app/SamsungExperienceService/SamsungExperienceService
.apk.bkp
adb shell mv /system/system/priv-app/SetupWizard/SetupWizard.apk /system/system/priv-app/SetupWizard
@thewh1teagle
thewh1teagle / Add_to_path_context_menu.zip
Last active May 16, 2022 08:22
Add directory to path from context menu in one click!
@thewh1teagle
thewh1teagle / miio_off.sh
Created November 28, 2020 20:17
Turn off xiaomi services on xiaomi 1080 360
#!/bin/sh
perpctl D miio_ota
perpctl D miio_agent
perpctl D miio_stream
perpctl D miio_record
perpctl D miio_cloud
perpctl D miio_algo
perpctl D miio_client
perpctl D miio_client_helper
perpctl D miio_nas

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications:

@thewh1teagle
thewh1teagle / a10.xml
Created December 1, 2020 10:48
Galaxy a10 lineage os manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="vendor"
fetch="https://github.com"
revision="lineage-17.1" />
<remote name="device"
fetch="https://github.com"
repo init --depth 1 -u https://github.com/LineageOS/android.git -b lineage-17.1
repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)