Skip to content

Instantly share code, notes, and snippets.

@rfdonnelly
rfdonnelly / README.adoc
Created July 16, 2024 06:18
Stylistic QR Codes w/ Logos
@rfdonnelly
rfdonnelly / README.adoc
Last active June 29, 2024 22:52
WSL 2 Mirrored Networking Mode + Global Protect

In WSL 2, get IP address:

ip addr show eth0

E.g., 172.23.99.247

In PowerShell, get interface ID:

netstat -r | findstr Hyper-V
@rfdonnelly
rfdonnelly / websocket-to-udp.adoc
Last active March 20, 2024 23:44
Websocket to UDP

WebSocket to UDP

The following allows a client side web application to communicate with a UDP endpoint.

We create a WebSocket to UDP bridge using websockify and socat.

The connection looks like:


@rfdonnelly
rfdonnelly / README.adoc
Last active March 17, 2024 18:32
SSH Smart Card Authentication for WSL 2
@rfdonnelly
rfdonnelly / git-reset-author.adoc
Created September 27, 2021 16:33
Git Reset Author

Git Reset Author

Rewrite all commits with a new committer and author information.

Set desired committer/author information
git config user.name <username>
git config user.email <email>
@rfdonnelly
rfdonnelly / git-reset-author.adoc
Created September 27, 2021 16:33
Git Reset Author

Git Reset Author

Rewrite all commits with a new committer and author information.

Set desired committer/author information
git config user.name <username>
git config user.email <email>
@rfdonnelly
rfdonnelly / docker-asciidoctor-web-pdf.adoc
Last active September 18, 2021 04:43
docker-asciidoctor-web-pdf

docker-asciidoctor-web-pdf

Notes on creating a Docker image for asciidoctor-web-pdf.

Attempt 1

asciidoctor-web-pdf does not provide a Docker image. However, it does provide binaries. Strategy: start from asciidoctor/docker-asciidoctor:1.11 and layer in the asciidoctor-web-pdf v1.0.0-alpha.12 binary.

@rfdonnelly
rfdonnelly / jtag-tap-reg.adoc
Last active September 17, 2021 05:29
JTAG TAP Register Access

JTAG TAP Register Access

Instructions

Instruction Opcode

WRITE_SINGLE

0b0000

@rfdonnelly
rfdonnelly / asciidoc-test.adoc
Last active July 8, 2021 22:07
asciidoc test

Doc

Block macro

latexmath::[$C = \alpha + \beta Y^{\gamma} + \epsilon$]

Delimited block
\[C = \alpha + \beta Y^{\gamma} + \epsilon\]