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
{%- macro xor(a, b) %} {#- Macros can only return text #} | |
{%- if (a and not b) or (not a and b) -%} | |
1 | |
{%- else -%} | |
0 | |
{%- endif %} | |
{%- endmacro -%} | |
{%- macro bitsToHex(bools) %} | |
{%- for hex in (bools | batch(4)) %} |
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/bash | |
RDIR="tank/foo" | |
ncdu_dir=. | |
dsize_bar="$("$ZFS" list -Hp -o usedds "$RDIR/bar")" | |
ncdu -0o- "/$RDIR" --exclude=bar \ | |
| sed 's/{"name":"bar","dev":0,"ino":0,"excluded":"pattern"}'\ | |
'/{"name":"bar","dev":0,"ino":0,"excluded":"pattern","dsize":'"$dsize_bar"'}/' \ | |
| gzip > "$ncdu_dir/$(date -uI).ncdu.gz" |
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/csv" | |
"fmt" | |
"log" | |
"os" | |
"time" | |
"github.com/eduncan911/podcast" |
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
iam command `# comment` \ | |
argument `# comment` \ | |
heeee # comment |
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
# see https://github.com/jtagcat/dotfiles/blob/main/scripts/template/gobuild.Dockerfile | |
# stuck on https://github.com/moby/moby/issues/29110 | |
FROM alpine | |
COPY getGoModVersion.sh . | |
COPY go.mod . | |
ENVCMD gover ./dockerGoMod.sh | sed -n '1 p' | |
FROM golang:$ver AS builder |
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
// ==UserScript== | |
// @name GitHub: White favicon | |
// @version 1.10.0 | |
// @author tobbez | |
// @match https://git.521000.bestmunity/* | |
// @match https://*.github.com/* | |
// @match https://github.com/* | |
// @match https://support.github.com/* | |
// @match https://github.blog/* | |
// @match https://opensource.guide/* |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 5.
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
"sõna","seletus","Kategooria" | |
"aager","distantsõpe","Digisõna" | |
"aapoks","digiboks","Digisõna" | |
"aasak","panoraamfoto","Digisõna" | |
"aatem","pangaautomaat, sõnast \"ATM\"","Digisõna" | |
"abroll","tolmuimeja","Digisõna" | |
"adima","photoshoppima","Digisõna" | |
"aedud","häkaton","Digisõna" | |
"aegur","kindla aja möödumisest märku andev seade ehk taimer","Digisõna" | |
"aelas","digiallkiri","Digisõna" |