Skip to content

Instantly share code, notes, and snippets.

@rfdonnelly
rfdonnelly / Rakefile
Created January 13, 2019 00:55
Rake output customization
# Rake output customization example
#
# Rake has two sources of output:
# * Rake::FileUtilsExt::rake_output_message
# * FileUtils::fu_output_message
#
# We can customize Rake output by monkey patching these methods. This example
# monkey patches these methods to pass the message to our transform_message
# method then passing the output to the original output method.
@rfdonnelly
rfdonnelly / .tmux.conf
Created July 15, 2020 19:01
tmux.conf
# act like screen
set -g prefix C-a
unbind C-b
bind a send-prefix # allow 'C-a a' to send C-a to application
bind C-a last-window # allow 'C-a C-a' to switch to last window
# vi key bindings
set-window-option -g mode-keys vi
set-option -g status-keys vi
@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\]
@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 / 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 / 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 / README.adoc
Last active March 17, 2024 18:32
SSH Smart Card Authentication for WSL 2
@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: