Configure udev
create udev rule for ergodone in bootloader
cat > /etc/udev/rules.d/99-ktec_ergodone.rules <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2327", MODE="0664", GROUP="plugdev"
EOF
import re | |
import os | |
def getpassword(service, account): | |
def decode_hex(s): | |
s = eval('"' + re.sub(r"(..)", r"\x\1", s) + '"') | |
if "" in s: s = s[:s.index("")] | |
return s |
cat > /etc/udev/rules.d/99-ktec_ergodone.rules <<EOF
SUBSYSTEM=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="2327", MODE="0664", GROUP="plugdev"
EOF
I hereby claim:
To claim this, I am signing this object:
import os | |
import lxml.html as LH | |
import shutil | |
import requests | |
temp_dir = "/tmp/avatar_tmp" | |
if not os.path.isdir("html/avatars"): | |
os.mkdir("html/avatars") | |
if os.path.isdir(temp_dir): |