Skip to content

Instantly share code, notes, and snippets.

View mjsir911's full-sized avatar

Marco Sirabella mjsir911

View GitHub Profile
package main
import (
"io"
"os"
)
type nopCloser[T io.Reader | io.Writer] struct {
T
}
#!/usr/bin/env bash
function firefox2cookiejar() {
# http://fileformats.archiveteam.org/wiki/Netscape_cookies.txt
# https://www.codejam.info/2021/10/bypass-sqlite-exclusive-lock.html
sqlite3 -separator ' ' "file:$1?immutable=1" <<- EOF
.mode tabs
.header off
select host,
case substr(host,1,1)='.' when 0 then 'FALSE' else 'TRUE' end,
path,