Skip to content

Instantly share code, notes, and snippets.

View ti-mo's full-sized avatar
💭
Taking a break.

Timo Beckers ti-mo

💭
Taking a break.
View GitHub Profile
@ti-mo
ti-mo / gist:45f5de16b5d6b4625a3d
Created September 16, 2015 08:15
Arch tpacpi settings
[Unit]
Description=sets battery thresholds
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/tpacpi-bat -s ST 0 80
ExecStart=/usr/bin/tpacpi-bat -s SP 0 90
[Install]
package main
import (
"fmt"
"errors"
"encoding/binary"
"syscall"
)
func main() {

Keybase proof

I hereby claim:

  • I am ti-mo on github.
  • I am thy (https://keybase.io/thy) on keybase.
  • I have a public key ASDBoNcmdv38XRDipotWWdikBE6tNKokDuzsoPkm09y3ywo

To claim this, I am signing this object:

@ti-mo
ti-mo / gist:033e7de02d58da9abc6a2bac91458291
Created August 19, 2021 15:47
cilium/ebpf aarch64 test failures
[timo@alarm-rpi4 ebpf]$ uname -a
Linux alarm-rpi4 5.11.4-1-ARCH #1 SMP Sun Mar 7 23:46:10 UTC 2021 aarch64 GNU/Linux
[timo@alarm-rpi4 ebpf]$ go test -exec sudo ./...
--- FAIL: TestLoadRawTracepoint (0.00s)
--- FAIL: TestLoadRawTracepoint/raw_tracepoint-el.elf (0.00s)
elf_reader_test.go:417: Can't create collection: program sched_process_exec: load program: invalid argument
--- FAIL: TestProgramKernelVersion (0.00s)
prog_test.go:294: Could not load Kprobe program
--- FAIL: TestProgramTypeLSM (0.00s)
@ti-mo
ti-mo / dhcpv6.go
Created July 20, 2022 07:27
dhcpv6 client for simple 4-way exchange
package main
import (
"flag"
"fmt"
"github.com/insomniacslk/dhcp/dhcpv6"
"github.com/insomniacslk/dhcp/dhcpv6/client6"
)