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 / ProfilesPS.bat
Created August 18, 2021 09:54 — forked from NotoriousPyro/ProfilesPS.bat
This is a PowerShell script I developed to delete all local profiles off the target PC that aren't: loaded, special (system profiles), have never been logged into, and that have not been used for more than 1 day. The last parameter is configurable via -lt (Get-Date).AddDays(-1)). It will safely delete profiles to avoid system issues such as loca…
@ECHO OFF
echo Powershell profile deleter
set /p PCNAME="PC:"
Powershell -Mta -NoProfile -Command "& {Get-WmiObject Win32_UserProfile -Computer %PCNAME% | Where {(!$_.Special) -and (!$_.Loaded) -and ($_.LastUseTime -ne $null) -and ($_.ConvertToDateTime($_.LastUseTime) -lt (Get-Date).AddDays(-1))} | Remove-WmiObject -Verbose}"
pause
@BjoernSchilberg
BjoernSchilberg / README.md
Created May 5, 2020 08:15 — forked from zouppen/README.md
Push to talk microphone with Pulseaudio

Microphone PTT for Pulseaudio

This tool helps you with many absolutely proprietary software which doesn't include proper push-to-talk key. I wrote this with Google Meet in mind but is also useful for many other browser based apps as well.

Like this? Support me at Github!

Installation

@BjoernSchilberg
BjoernSchilberg / accel_demo.go
Created March 18, 2020 19:32 — forked from kianryan/accel_demo.go
tinygo demo for BBC MicroBit using accelerometer and matrix display
package main
import (
"time"
"machine"
"image/color"
"tinygo.org/x/drivers/microbitmatrix"
"tinygo.org/x/drivers/mma8653"
)
@BjoernSchilberg
BjoernSchilberg / Hello.cpp
Created February 23, 2020 22:46 — forked from wuuff/Hello.cpp
CHIP-8 interpreter for Pokitto (WIP)
#include "pokitto.h"
Pokitto::Core game;
//#define SCREEN_W 110
//#define SCREEN_H 88
extern "C" {
#include "chip8.h"
void chip8_initialize(C8* CH8);
@BjoernSchilberg
BjoernSchilberg / go.mod
Created June 19, 2019 20:32 — forked from mlh758/go.mod
Go Excelize Perf Test
module github.com/mlh758/exc_test
go 1.12
require github.com/360EntSecGroup-Skylar/excelize v1.4.1