Skip to content

Instantly share code, notes, and snippets.

View zoe1337's full-sized avatar

Zoé Bőle zoe1337

View GitHub Profile
@zoe1337
zoe1337 / pythonmorphic_batch.py
Created December 21, 2022 15:47
very proof of concept anamorphic lens flare effect batch processor written in python-opencv
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
import os
@zoe1337
zoe1337 / enchilada nfc initiated unintended reboot.log
Created June 13, 2022 08:55
LineageOS 12 running on enchilada reboots when placed on the NFC antenna of a Dell Latitude 5411 running Windows 10
PN54X - Posting read message.....
2022-06-13T08:50:00.637Z 861-22296/? D/NxpNciR: len = 28 <= 40011900030E0201080001020380828384025C03FF0200045111211F
2022-06-13T08:50:00.638Z 861-22299/? D/NxpHal: read successful status = 0x0
CORE_INIT_RSP NCI1.0 received !
NxpNci> FW Version: 11.21.1f
CORE_INIT_RSP 1 received !
2022-06-13T08:50:00.638Z 861-22296/? D/NxpTml: PN54X - Read requested.....
2022-06-13T08:50:00.638Z 861-861/? D/vendor.nxp.nxpnfc@1.0-impl: ioctl: enter
2022-06-13T08:50:00.638Z 861-22296/? D/NxpTml: PN54X - Invoking I2C Read.....
2022-06-13T08:50:00.639Z 861-861/? D/NxpHal: phNxpNciHal_ioctl : enter - arg = 9
@zoe1337
zoe1337 / decode-postcard.ipynb
Created May 22, 2022 18:59
Decoding the Long Postcard
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zoe1337
zoe1337 / solderpastejig.scad
Last active June 4, 2021 12:16
A simple FDM-printable custom pasting jig.
pcb = [90.0, 40.0, 1.65];
gap = 0.2;
base = [180, 180, 0.2];
/* WTFPL yada yada
The idea is to bring the surface around the PCB to the same height as the
top surface of the PCB so that the stencil on top lies nice and flat.
@zoe1337
zoe1337 / jack_mpd_howto_2021.md
Last active June 1, 2022 06:23
How I got our mpd to use JACK2 in Arch

Problem Description

We have a smol server at home which is among others responsible for music. This is accomplished by mpd.

I wanted to change the output from pulseaudio, because it was making pops every time the playlist was finished and it released the sound card. Also I wanted to have networked audio, so we can watch/listen occasionally on the speakers from our desktop PCs.

Without further explanation:

install packages

@zoe1337
zoe1337 / pipeline.scad
Created March 30, 2021 12:08
Simple pipeline tool in openscad
pipeCoords = [
[0,0,0],
[0,2,9],
[0,4,15],
[0,6,21],
[0,15,35],
[0,26,50],
[0,32,59],
[0,41,74],
@zoe1337
zoe1337 / PKGBUILD
Created May 26, 2020 15:24
almost-working Arch PKGBUILD for intel's mptcpd
pkgname=mptcpd
pkgver=0.4
pkgrel=1
pkgdesc="Multipath TCP daemon"
url="https://github.com/intel/mptcpd"
arch=('x86_64')
license=('GPL2' 'BSD')
depends=('ell')
source=(
"https://github.com/intel/mptcpd/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
@zoe1337
zoe1337 / dewiner.sh
Created April 11, 2020 18:56
removes wine file associations
#!/usr/bin/env bash
cd $HOME
rm -f ~/.local/share/applications/wine-extension*.desktop
rm -f ~/.local/share/icons/hicolor/*/*/application-x-wine-extension*
rm -f ~/.local/share/applications/mimeinfo.cache
rm -f ~/.local/share/mime/packages/x-wine*
rm -f ~/.local/share/mime/application/x-wine-extension*
update-desktop-database ~/.local/share/applications
update-mime-database ~/.local/share/mime/
echo "you\'re good now."
@zoe1337
zoe1337 / display-handler.sh
Last active April 8, 2020 18:34
Zoé's xrandr handler script
#!/bin/bash
# call srandrd /path/to/display-handler.sh in your xorg startup scripts (in my case from rc.lua)
RESOLUTION="1366x768"
LOCKFILE=/tmp/display-handler.lock
if [[ -a $LOCKFILE ]]
then
sleep 4s
@zoe1337
zoe1337 / solderPasteJig-canesys.scad
Created April 7, 2020 12:31
openSCAD design for a solder paste jig
pcb = [90.0, 40.0, 1.65];
gap = 0.3;
base = [180, 180, 0.2];
module corners(dim, center=true) {
coords = [[0,0], [0, dim.y], [dim.x, 0], dim];
for (vector=coords)
translate(vector - (center?([dim[0], dim[1]]/2):0))
children();