Skip to content

Instantly share code, notes, and snippets.

@veghead
veghead / random_unix_things.md
Last active April 19, 2024 23:23
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

@veghead
veghead / launch.json
Created March 9, 2024 21:21
Launch config for getting VSCode to use LLDB as a debugger on a Mac (ceedling_lldb), with Ceedling Text Explorer.
{
"name": "ceedling_lldb",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/test/out/${command:ceedlingExplorer.debugTestExecutable}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
@veghead
veghead / Samsung_A_Quantum_root.md
Last active March 2, 2024 22:19
Notes on rooting Samsung A Quantum on a Mac with Heimdall

Notes on rooting Samsung Galaxy A Quantum on a Mac with Heimdall

The A Quantum is actually the A71 5G from South Korea Telecom but it contains an S2Q000 Quantum random number generator made by IDQuantique.

This is a systemless install which means you don't bugger up the distribution. In a nutshell, Magisk patches boot.img and vmbeta.img which gives it a handy/dandy portal to rootworld.

@veghead
veghead / gist:2185dcb66080bc0161cc69b79e15eddd
Created January 29, 2024 00:23
ISC dhcpd.conf for making a SunRay 1 happy
option space sunray code width 1 length width 1 hash size 12;
option sunray.authserver code 21 = ip-address;
option sunray.authport code 22 = unsigned integer 16;
option sunray.version code 23 = text;
option sunray.logserver code 24 = ip-address;
option sunray.logkernel code 25 = unsigned integer 8;
option sunray.lognet code 26 = unsigned integer 8;
option sunray.logusb code 27 = unsigned integer 8;
option sunray.logvid code 28 = unsigned integer 8;
option sunray.logappl code 29 = unsigned integer 8;
@veghead
veghead / remote-debugging.md
Created August 16, 2023 15:58
Remote debugging an NRF52 with GDBServer on a different machine from VSCode and Cortex Debug

On the target machine: JLinkGDBServer -Port 5555 -device NRF52 -if SWD

In VSCode locally, add the following config block in launch.json:

        {
            "name": "Remote Debug",
            "cwd": "${workspaceRoot}",
            "executable": "build/src/myapp",
 "gdbTarget": "192.168.22.6:5555",

Keybase proof

I hereby claim:

  • I am veghead on github.
  • I am veghead (https://keybase.io/veghead) on keybase.
  • I have a public key ASDnQgWjDLiPfCv-INLPeKSeUJwk43lB4rqiiMetR_dkSwo

To claim this, I am signing this object: