Skip to content

Instantly share code, notes, and snippets.

View zoe1337's full-sized avatar

Zoé Bőle zoe1337

View GitHub Profile
@zoe1337
zoe1337 / keybase.md
Created February 17, 2019 12:20
keybase.io proof

Keybase proof

I hereby claim:

  • I am zoe1337 on github.
  • I am zoee (https://keybase.io/zoee) on keybase.
  • I have a public key ASATDJSPD1esWkyELZKo0SSvsxjqR_ycYeadIKlXk1G58Ao

To claim this, I am signing this object:

@zoe1337
zoe1337 / mystery_chip.kicad_mod
Created January 31, 2020 18:47
strange throgh-hole IC
(module mystery_chip (layer F.Cu) (tedit 5E34700A)
(fp_text reference REF** (at 1.642 -11.18) (layer F.SilkS)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_text value mystery_chip (at 1.642 -12.18) (layer F.Fab)
(effects (font (size 1 1) (thickness 0.15)))
)
(fp_line (start -22.1 -13.5) (end 22.1 -13.5) (layer F.CrtYd) (width 0.12))
(fp_line (start 22.1 -13.5) (end 22.1 13.5) (layer F.CrtYd) (width 0.12))
(fp_line (start 22.1 13.5) (end -22.1 13.5) (layer F.CrtYd) (width 0.12))
@zoe1337
zoe1337 / mute-unmute.sh
Created April 3, 2020 20:19
toggle mute of microphone using pulseaudio
#!/usr/bin/env bash
CARD_IDX="10" # use `pacmd list-sources` to find out which one
STATUS_FILE="$XDG_RUNTIME_DIR/micmute_status" # temp file to store state
INDICATOR_LED="2" # 0: num, 1: caps, 2: scroll lock
LED_WHEN_MUTED="on"
LED_WHEN_UNMUTED="off"
touch "$STATUS_FILE" # make sure it exist
@zoe1337
zoe1337 / mic-control.sh
Created April 4, 2020 01:20
A more advanced form of mute-unmute, with true PTT functionality
#!/usr/bin/env bash
## usage: after installation, microphone is unmuted only while you
## press the key specified here. shift+hotkey will lock the microphone state
## note that this only works consistently as long as you use this
## script and/or keybindings; it won't update state if you use pavucontrol
## or other method to mute/unmute.
##
## installation: ideally, just run this script from a terminal with the install parameter.
## if that fails for whatever reason, refer to
@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();
@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 / 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 / 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 / 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 / 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