I hereby claim:
- I am gndu91 on github.
- I am ghouln (https://keybase.io/ghouln) on keybase.
- I have a public key ASAYiShUahZKRaYHJNarF69dAH9ZWDSTVLDH_jgEulPK8wo
To claim this, I am signing this object:
import ctypes | |
LONG = ctypes.c_long | |
DWORD = ctypes.c_ulong | |
ULONG_PTR = ctypes.POINTER(DWORD) | |
WORD = ctypes.c_ushort | |
class MOUSEINPUT(ctypes.Structure): | |
_fields_ = (('dx', LONG), | |
('dy', LONG), |
#!/usr/bin/env python | |
# liuw | |
# Nasty hack to raise exception for other threads | |
import ctypes # Calm down, this has become standard library since 2.5 | |
import threading | |
import time | |
NULL = 0 |
I hereby claim:
To claim this, I am signing this object:
# Ignore all | |
* | |
# Unignore all with extensions | |
!*.* | |
# Unignore all dirs | |
!*/ | |
### Above combination will ignore all files without extension ### |
""" | |
Example: | |
python3 complete.py define my_command | |
- Define this script as the handler in .bashrc | |
- Note: this will overwrite any previous handler | |
python3 complete.py undef my_command | |
- Remove it from .bashrc | |
python3 complete.py complete <current_word> <full_line> |
#!/usr/bin/python3 | |
import enum | |
import hashlib | |
import os | |
import threading | |
import time | |
from ast import literal_eval | |
from functools import partial |
#run from terminal with: adb shell "$(cat temperature.sh)" to get list of temperature sensors and their temperature | |
#on Android devices | |
for VARIABLE in $(seq 1 80) | |
do | |
cat /sys/devices/virtual/thermal/thermal_zone$VARIABLE/type | |
cat /sys/devices/virtual/thermal/thermal_zone$VARIABLE/temp | |
done |
#!/usr/bin/env python | |
""" | |
LICENSE http://www.apache.org/licenses/LICENSE-2.0 | |
""" | |
import argparse | |
import datetime | |
import sys | |
import time | |
import threading |