go run . > output.png
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
if [ ! "$TMUX" ]; then | |
tmux new-session $0 $@ | |
exit | |
fi | |
tmux new-window -n "vim $@" | |
LASTWINDOW=$(tmux list-windows | sort -k 8 | tail -1 | sed 's/\([0-9]*\):.*/\1/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/binary" | |
"errors" | |
"fmt" | |
"image" | |
"io" | |
"log" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
( | |
cat << \EOF | |
dd if=/proc/$(pidof xochitl)/mem count=2628288 bs=1 skip=$((16#$(grep '/dev/fb0' /proc/$(pidof xochitl)/maps | sed 's/.*\-\([0-9a-f]*\) .*/\1/'))) | |
EOF | |
) | ssh root@IP_OF_REMARKABLE | convert -depth 8 -size 1872x1404+0 gray:- shot.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate PlantUML Diagrams | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
plantuml: | |
runs-on: ubuntu-latest | |
env: | |
UML_FILES: ".puml" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00000000000a37e0 <main.main>: | |
a37e0: f9400b81 ldr x1, [x28, #16] | |
a37e4: 910003e2 mov x2, sp | |
a37e8: eb01005f cmp x2, x1 | |
a37ec: 54000649 b.ls a38b4 <main.main+0xd4> // b.plast | |
a37f0: f81c0ffe str x30, [sp, #-64]! | |
a37f4: f81f83fd stur x29, [sp, #-8] | |
a37f8: d10023fd sub x29, sp, #0x8 | |
a37fc: f000027b adrp x27, f2000 <runtime.gcbits.*+0xef8> | |
a3800: 9132237b add x27, x27, #0xc88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"compress/zlib" | |
"context" | |
"encoding/gob" | |
"image" | |
"image/jpeg" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func hasSlept(ctx context.Context, healthCheck time.Duration, sleptTime time.Duration) <-chan struct{} { | |
signalC := make(chan struct{}) | |
go func(chan<- struct{}) { | |
tick := time.NewTicker(healthCheck) | |
last := time.Now() | |
for { | |
select { | |
case <-ctx.Done(): | |
return | |
case <-tick.C: |