This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"D:\Program Files\VcXsrv\vcxsrv.exe" :0 -ac -terminate -lesspointer -nodecoration -clipboard -wgl -keyhook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define DBG_PRINT(fmt, ...) fprintf(stderr, "-----> %s() line %d: " fmt, __func__, __LINE__, ##__VA_ARGS__) | |
#define DBG_PRINT(fmt, ...) fprintf(stderr, "-----> %s -> %s() line %d: " fmt, __FILE__,_ _func__, __LINE__, ##__VA_ARGS__) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stick it somewhere and source it :) | |
pkg_tracker() { | |
for pkg in "$@"; do | |
echo -n "${pkg}: " | |
curl -s "http://www.israelpost.co.il/itemtrace.nsf/trackandtraceJSON?openagent&lang=EN&itemcode=${pkg}" | | |
python2 -c "import sys, json; print json.load(sys.stdin)['itemcodeinfo'].split('<script')[0]" | |
done | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ -n $1 ]] ; then | |
amdconfig --pplib-cmd "set fanspeed 0 $1" | |
amdconfig --pplib-cmd "get fanspeed 0" | |
else | |
amdconfig --pplib-cmd "get fanspeed 0" | |
amdconfig --odgt --odgc | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x | |
ADB="$(which adb)" | |
# We need root on the host to mess with networking | |
if [[ $(whoami) != "root" ]]; then | |
echo "You must be root to run this script!" | |
exit 1 | |
fi; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
au VimLeave * call system('xclip -in -selection clipboard', getreg('+')) |