Skip to content

Instantly share code, notes, and snippets.

View bsiegert's full-sized avatar
🚩

Benny Siegert bsiegert

🚩
View GitHub Profile
@bsiegert
bsiegert / .work.log
Created January 6, 2024 08:49
net/avahi build on Linux
[*] /home/bsiegert/pkgsrc/net/avahi/work/.tools/bin/mkdir conf425017.dir
<.> /bin/mkdir -p conf425017.dir
[*] /home/bsiegert/pkgsrc/net/avahi/work/.tools/bin/mkdir -p .
<.> /bin/mkdir -p -p .
[*] /home/bsiegert/pkgsrc/net/avahi/work/.tools/bin/mkdir --version
<.> /bin/mkdir -p --version
[*] /home/bsiegert/pkgsrc/net/avahi/work/.tools/bin/echo @@@%%%=make=@@@%%%
<.> echo @@@%%%=make=@@@%%%
[*] /home/bsiegert/pkgsrc/net/avahi/work/.tools/bin/mkdir .tst
<.> /bin/mkdir -p .tst
@bsiegert
bsiegert / ssh_config
Created December 29, 2023 19:06
Fix NetBSD SSH connection after terrapin
Host *.netbsd.org
MACs hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com,umac-64@openssh.com
@bsiegert
bsiegert / .ctwmrc
Last active November 8, 2023 13:37
ctwmrc from NetBSD, adapted for Debian
#
# $NetBSD: system.ctwmrc,v 1.19 2022/05/27 17:04:16 nia Exp $
#
# ctwmrc by nia
#
# An attempt to strike a usability balance that makes keys and buttons
# do the thing users of various operating systems expect them to do.
#
# Most things should be possible to accomplish with only the keyboard.
#
@bsiegert
bsiegert / go-cypto-dependencies.txt
Created March 8, 2023 19:53
Reverse dependencies of security/go-crypto
/net/go-net/buildlink3.mk:.include "../../security/go-crypto/buildlink3.mk"
./net/go-net/Makefile:.include "../../security/go-crypto/buildlink3.mk"
./wip/ssh-chat/Makefile:.include "../../security/go-crypto/buildlink3.mk"
./wip/go-pass/Makefile:.include "../../security/go-crypto/buildlink3.mk"
./wip/ic/Makefile:.include "../../security/go-crypto/buildlink3.mk"
./wip/go-curlie/Makefile$:.include "../../security/go-crypto/buildlink3.mk"
./wip/go-curlie/buildlink3.mk:.include "../../security/go-crypto/buildlink3.mk"
./wip/go-curlie/Makefile:.include "../../security/go-crypto/buildlink3.mk"
./devel/go-logrus/buildlink3.mk:.include "../../security/go-crypto/buildlink3.mk"
./devel/go-logrus/Makefile:.include "../../security/go-crypto/buildlink3.mk"
@bsiegert
bsiegert / go.mod
Created February 5, 2023 13:01
Go and Lua Hello World
module github.com/bsiegert/luatest
go 1.19
require github.com/Shopify/go-lua v0.0.0-20221004153744-91867de107cf // indirect
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Skipping vulnerability checks.
===> Building for xosview2-2.3.3
cd /usr/obj/pkgsrc/sysutils/xosview2/work/xosview2-2.3.3/cmeter && /usr/bin/make
c++ -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/obj/pkgsrc/sysutils/xosview2/work/xosview2-2.3.3 -I/usr/obj/pkgsrc/sysutils/xosview2/work/xosview2-2.3.3/cmeter -I/usr/obj/pkgsrc/sysutils/xosview2/work/xosview2-2.3.3/bsd -DHAVE_CONFIG_H -c sensorfieldmeter.cc -o sensorfieldmeter.o
c++ -O2 -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -I/usr/obj/pkgsrc/sysutils/xosview2/work/xosview2-2.3.3 -I/usr/obj/pkgsrc/sysutils/xosview2/work/xosview2-2.3.3/cmet
package main
import (
"log"
"os"
"os/exec"
)
func main() {
a := exec.Command("ls")
Index: files/lib/parse-config.c
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/pkg_install/files/lib/parse-config.c,v
retrieving revision 1.17
diff -u -r1.17 parse-config.c
--- files/lib/parse-config.c 11 Dec 2020 10:06:53 -0000 1.17
+++ files/lib/parse-config.c 19 Dec 2020 20:11:26 -0000
@@ -150,6 +150,10 @@
continue;
line += var_len + 1;
@bsiegert
bsiegert / mailparser.go
Created March 22, 2019 09:50
Parse cloudmailin emails
package mailparser
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
)
@bsiegert
bsiegert / kdump-amd64.out
Last active February 16, 2019 17:16
TestPassFD debugging
11889 1 ktrace EMUL "netbsd"
11889 1 ktrace CALL execve(0x7f7fff3b0772,0x7f7fff3b01b0,0x7f7fff3b01c8)
11889 1 ktrace NAMI "/home/bsiegert/./syscall.test"
11889 1 ktrace NAMI "/usr/libexec/ld.elf_so"
11889 1 syscall.test EMUL "netbsd"
11889 1 syscall.test RET execve JUSTRETURN
11889 1 syscall.test CALL mmap(0,0x8000,PROT_READ|PROT_WRITE,0x1002<PRIVATE,,,>,0xffffffff,0,0)
11889 1 syscall.test RET mmap 140187597238272/0x7f7ff7ef7000
11889 1 syscall.test CALL open(0x7f7ff7c0bf0c,0,0x7f7ff7e11768)
11889 1 syscall.test NAMI "/etc/ld.so.conf"