Skip to content

Instantly share code, notes, and snippets.

View zoe1337's full-sized avatar

Zoé Bőle zoe1337

View GitHub Profile
@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 / 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 / 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 / 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: