Skip to content

Instantly share code, notes, and snippets.

@veghead
Last active June 17, 2024 22:32
Show Gist options
  • Save veghead/4c8b6fb8547d56d0b3af2ab4362189a0 to your computer and use it in GitHub Desktop.
Save veghead/4c8b6fb8547d56d0b3af2ab4362189a0 to your computer and use it in GitHub Desktop.
Random unix things

Verbose ceedling

ceedling verbosity[4] test:all

Change comment for SSH key

ssh-keygen -c -C "git@github.com:org/repo.git" -f ~/.ssh/my_ssh_key (Useful for "Comment for key 'ssh-rsa blahblah= (stdin)' does not match GitHub URL pattern. Not treating it as a GitHub deploy key.")

Add a forwarded display to .Xauthority:

xauth> add :1 MIT-MAGIC-COOKIE-1 a7f4ce14751f2c8b66e728c9a1b583b0

Pipe data from serial port to a file:

(stty raw; cat > serial_data.raw) < /dev/ttyFILENAME

Upper or Lower case things in vim:

:s/.*/\U&/g and :s/.*/\L&/g respoectively. Lower-case u and l only affect a single character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment