This file contains 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
# do not forget to provide permisson to your device like: | |
# $ sudo chmod go+rw /dev/bus/usb/001/005 | |
# | |
# | |
# or create udev rule in file /etc/udev/rules.d/50-local-raw-usb.rules: | |
# SUBSYSTEM=="usb", ATTRS{idVendor}=="04d9", ATTRS{idProduct}=="a052", MODE="0666" | |
# | |
# and restart udev | |
# $ sudo udevadm control --reload-rules && sudo udevadm trigger | |
# |
This file contains 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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBGCulhoBEAC7ZCffTBxGS6vkEkIsqHywo4ozrbROdKEwGRuFDaeNpeeIRF12 | |
OiDmU5XK5pqCfHdSeOasLJHuoRUvhjq7J45QqcDBFcliHxFT0a+nHWO2JWjKoosy | |
cAZ5EybMPBOuFxh3JSx1Z+gDTykNdRxePtyoJfZGVGKTj7LwusgVfuYorp/2TWy4 | |
JuRWx67Ws5Ib1q4Wbut/siz/7sjlDMSe7XbSueJBepHR911ztxCT1w+lrk6DkYWS | |
JV3Z9JQUr+jTQ079u3D4/fYkI+s4Qr3uvg7JlMfWchAgFa9jjptl2M2JhbNbo9uT | |
sNbk1MN2LWFAqdM/8kqCrc8OdPBQroAWgPpoW6JTckB6DgRpftmdDq0n/Zt//jyk | |
XOp7xsLTprfzxN7BFtCiXD/hBUZu57bcDS+7BLsWdMIUB/6h1d7MGk+vpwyFvAPL | |
5TjzJP3o+tabBdBH8djOVmiwKXu46/3sS6P3ezB14ecaML3duBZA0a9FjjBv5+ke |
This file contains 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
# create URL friendly name from arbitrary string, cut length to 63 chars | |
# like CI_COMMIT_REF_SLUG in Gitlab | |
slugify() { | |
echo -n "$1" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z | cut -c -63 | |
} |