go run main.go https://www.youtube.com/watch\?v\=pp-wmEKWLSo\&gdfds 0h0m12s 0h1m12s https://www.youtube.com/embed/pp-wmEKWLSo?end=72&gdfds=&start=12&v=pp-wmEKWLSo
View sample_test.go
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/json" | |
"log" | |
"reflect" | |
"testing" | |
"time" | |
"cuelang.org/go/cue" |
View sample.go
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 sample | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net/http" | |
"net/http/httptest" | |
"testing" |
View Makefile
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
SOURCE_DIR := jpg | |
OUTPUT_DIR := webp | |
jpg_srcs := $(shell find $(SOURCE_DIR) -type f -name '*.jpg') | |
webp := $(patsubst $(SOURCE_DIR)/%.jpg, $(OUTPUT_DIR)/%.webp, $(jpg_srcs)) | |
toWebo: $(webp) | |
$(OUTPUT_DIR)/%.webp : $(SOURCE_DIR)/%.jpg | |
magick $< -quality 50 -define webp:lossless=true $@ |
View dev.sh
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/') |
View main.go
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" |
View script.sh
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 |
View plantuml.yml
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" |
View canvas.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View go-tool-objdump.s
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 |