Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
BjoernSchilberg / zsh-stats.py
Created February 26, 2022 20:08 — forked from kokoscript/zsh-stats.py
Stats from .zsh_history
import time
import re
hist = []
commands = []
count = 0
trueCount = 0
# by year
yearCounts = {}
monthCounts = {}
@BjoernSchilberg
BjoernSchilberg / go.mod
Created February 16, 2022 07:20 — forked from samwightt/go.mod
Ebiten example with perlin noise generation
module samw.dev/ebiten
go 1.15
require (
github.com/aquilax/go-perlin v1.1.0
github.com/hajimehoshi/ebiten/v2 v2.2.4
)
@BjoernSchilberg
BjoernSchilberg / Ebiten-with-Leap.go
Created December 15, 2021 20:25 — forked from YamiOdymel/Ebiten-with-Leap.go
Ebiten with Leap Motion written in Golang
package main
import (
"fmt"
"image/color"
"math"
"github.com/hajimehoshi/ebiten"
"github.com/hajimehoshi/ebiten/ebitenutil"
"github.com/jaxi/motion"
@BjoernSchilberg
BjoernSchilberg / pico-8-volume.py
Created December 4, 2021 22:02 — forked from follower46/pico-8-volume.py
Adds volume control to PICO-8 on the gameshell
# you need to `sudo pip install pyxhook` as it's used to intercept the volume presses
# you will also want to update your launcher to call this script (I just have mine in the pico-8 directory
# and have my PICO-8.sh run:
# SDL_VIDEODRIVER=x11 DISPLAY=:0 python /home/cpi/pico-8/pico-8-volume.py
# video of what it looks like: https://www.youtube.com/watch?v=BAoYapdMiPM
import pygame
import os
import pyxhook
import alsaaudio
@BjoernSchilberg
BjoernSchilberg / README.md
Last active November 18, 2021 13:15
unifi

Unifi

Building go binaries for UniFi AC Pro AP

GOOS=linux GOARCH=mips GOMIPS=softfloat go build

Execute

@BjoernSchilberg
BjoernSchilberg / README.md
Last active November 17, 2021 21:25
Performance test

Performance test

CPU

sysbench --test=cpu --cpu-max-prime=24576 --num-threads=1 run

Memory

@BjoernSchilberg
BjoernSchilberg / README.md
Last active November 3, 2021 20:54
iperf3

iperf3

On the server

iperf3 -s -i 1

On the client