Skip to content

Instantly share code, notes, and snippets.

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 / 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):
#!/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 / config
Created July 29, 2017 06:10
~/.ssh/config
Host a
Hostname a.com
Port 22
User user
Host *
ServerAliveInterval 30
ServerAliveCountMax 3
@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
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
# 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