Skip to content

Instantly share code, notes, and snippets.

# use su of kingroot for system modification:
/system/xbin/ku.sud -d &
/system/xbin/.rgs -d &
/system/etc/kds --global-daemon 1
# remove any files of KingRoot!!!
# find / -name *kingroot*
rm -rf /system/usr/iku/isu
rm -rf /system/usr/iku
This file has been truncated, but you can view the full file.
阿爸 a1'ba4 18137
阿昌族 a1'chang1'zu2 50849
阿斗 a1'dou3 42632
阿飞 a1'fei1 48603
阿富汗 a1'fu4'han4 3461
阿訇 a1'hong1 34432
阿拉伯数字 a1'la1'bo2'shu4'zi4 35937
阿拉伯语 a1'la1'bo2'yu3 30476
阿妈 a1'ma1 16220
@cryptogun
cryptogun / .bashrc
Last active January 28, 2024 05:13
# open file:
alias open="xdg-open >/dev/null 2>&1"
# case insensitive command
shopt -s nocaseglob
# correct typo
shopt -s cdspell
#$ cd desktop<enter>
# save every history in parallel prompts
shopt -s histappend
@cryptogun
cryptogun / config
Created July 29, 2017 06:10
~/.ssh/config
Host a
Hostname a.com
Port 22
User user
Host *
ServerAliveInterval 30
ServerAliveCountMax 3
#!/usr/bin/env python
# coding: utf-8
"""Query current cursor position.
Return cursor coordinates relative to cursor resolution 2^16 x 2^16."""
import ctypes
class _point_t(ctypes.Structure):
"""Cursor point coordinate relative to screen resolution."""
_fields_ = [
@cryptogun
cryptogun / learn_thread.py
Created July 29, 2017 06:27
python threading
import threading
from queue import Queue
import time
NUMBER_OF_THREADS = 3
PRINTING_LOCK = threading.Lock()
def locking_print_decorator(func):
def func_wrapper(*args, **kwargs):
Unpack the downloaded tar/tgz/zip file where it lays
Using a Terminal window, navigate to that folder location (probably cd ~/Downloads), invoke sudo -i (You will need administrator/su permissions for the next few steps)
mv android-studio /opt moves the files you unpacked (requires permissions)
gedit android-studio.desktop this opens a text editor so that we may create a shortcut icon to open your new program. Insert the following code, then save the .desktop file.
[Desktop Entry]
Name=Android Studio
Comment=Integerated Development Environment for Android
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.png
Terminal=false
@cryptogun
cryptogun / dell_auto_brightness.sh
Last active July 29, 2017 18:45
1. make sure ddccontrol works for you. 2. find out time-brightness sine function. 3. find out the correct dev and address. #phone sine brightness: y=53*sin(0.2361*x-1.31)+0
#!/bin/bash
# */10 * * * * root path/to/auto_brightness.sh
A=80
omega=0.3
t="-2.5"
c="0" #5
now=`date | awk -F ' ' '{print $4}'`
hour=`echo $now | awk -F ':' '{print $1}'`
minute=`echo $now | awk -F ':' '{print $2}'`
#!/bin/bash
REMOTE="xxx@192.168.1.2:/home/xxx/Desktop"
MOUNTPOINT=$( mount | grep -E "^${REMOTE}/? " | awk '{print $3}' )
if [ -z "$MOUNTPOINT" ] ; then
sudo sshfs -o allow_other,default_permissions xxx@192.168.1.2:/home/xxx/Desktop /home/xxx/Desktop/latitudeDT
else
echo "LATI ALREADY DONE."
fi
@cryptogun
cryptogun / kill_nemo.sh
Created July 29, 2017 18:54
nemo 100% CPU bug long time no fix. Kill it.
#!/bin/bash
# */3 * * * * xxx bash /path/to/kill_nemo.sh
cpu=`top -b -n 1 | grep " nemo" | head -n 1 | awk -F ' ' '{print $9}'`
memory=`top -b -n 1 | grep " nemo" | head -n 1 | awk -F ' ' '{print $10}'`
pid=`top -b -n 1 | grep " nemo" | head -n 1 | awk -F ' ' '{print $1}'`
if [[ "none"$cpu == "none" || "none"$memory == "none" || "none"$pid == "none" ]]; then
exit 0
fi