start new:
tmux
start new with session name:
tmux new -s myname
# save secret to file, for example /tmp/secret.b64 | |
# enc_key: they key used in the action | |
enc_key= | |
cat /tmp/secret.b64 | base64 -d | openssl aes-256-cbc -d -pbkdf2 -k "$enc_key" |
ACTION=="add", SUBSYSTEMS=="usb", ATTR{idProduct}!="XXXX", ATTR{idVendor}!="YYYY", RUN{program}+="/usr/sbin/usbip bind -b %k" |
-- https://phoenixnap.com/kb/postgres-create-user | |
-- from the user that will create new tables | |
CREATE USER userb WITH PASSWORD 'sosecure'; | |
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "userb"; | |
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL PRIVILEGES ON TABLES TO "userb"; |
#!/bin/awk -f | |
# Convert awk hex colors to rgb values using awk. | |
# input line: #000000 | |
# output line: rgb(0,0,0) | |
{ | |
number = substr($1, 2) | |
for (i = 1; i <= 3; i++) { | |
idx = (i - 1)*2 + 1 |