Skip to content

Instantly share code, notes, and snippets.

@Vftdan
Vftdan / cue_to_flac_cmd.py
Last active August 14, 2022 14:54 — forked from Theldus/cue_to_flac.py
CUE splitter using ffmpeg (to flac)
#! /usr/bin/env python3
import sys
def unquote(s):
if len(s) < 2:
return s
if s[0] == '"' and s[-1] == '"':
return s[1:-1]
return s
@Vftdan
Vftdan / toggleMicOneLiner.sh
Last active January 7, 2019 13:33 — forked from nikhilw/toggleMicOneLiner.sh
Toggle mic on-off on a Ubuntu / Linux Mint machine with a keyboard shortcut
#! /bin/sh
# static icon, easier to set as a bash alias or directly use as a single command instead of creating a script file.
amixer -D pulse set Capture toggle | gawk 'match($0, /(Front Left|Mono).*\[(.*)\]/, a) {print a[2]}' | xargs notify-send --hint=int:transient:1 -i "audio-input-microphone" "Mic switched: $1"