Skip to content

Instantly share code, notes, and snippets.

View droberin's full-sized avatar
🤠
I'm a cowboy... In an Ostrich I must ride!

Roberto Salgado droberin

🤠
I'm a cowboy... In an Ostrich I must ride!
View GitHub Profile
@droberin
droberin / README.md
Last active July 27, 2024 20:08
StarCitizen ship order in terminal device (prefixes your favourite ships with numbers to show up first using alphabetical order)

StarCitizen Favourite Ships (Author callsign: DRoBeR)

To avoid having to scroll into a big ship list, one can add a Prefix into their ship names... so they would pop up first on machine lists!!

Configuration

add your favourite ships by key into fav_ships.txt at same dir as the ps1 script. Example:

vehicle_nameANVL_Carrack
vehicle_NameANVL_C8R_Pisces_Rescue
@droberin
droberin / keychain.py
Created September 14, 2022 10:54 — forked from gcollazo/keychain.py
Python methods to interact with Mac OS X Keychain
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
@droberin
droberin / ergodone_linux.md
Last active December 21, 2021 00:01
KTEC Ergodone Linux Setup

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

Reload config.

@droberin
droberin / keybase.md
Created July 24, 2020 13:47
keybase.md

Keybase proof

I hereby claim:

  • I am droberin on github.
  • I am drober (https://keybase.io/drober) on keybase.
  • I have a public key ASDL-_jm3JpDePPx2uwhTFb3uL4WHd9SiSe1RWMVnUkzmwo

To claim this, I am signing this object:

@droberin
droberin / fix_avatars.py
Created February 9, 2018 15:54
Slack exported conversation avatar replacement with locally downloaded avatars from original URL
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):