Skip to content

Instantly share code, notes, and snippets.

@alexedwards
alexedwards / Makefile
Last active May 8, 2024 08:59
Boilerplate Makefile for Go projects
# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/example
BINARY_NAME := example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
@fatihkaan22
fatihkaan22 / spotify-kill-pulse-client.sh
Last active December 16, 2023 05:36
Kills unused spotify pulseaudio instances
#! /bin/bash
spotifyInstances=()
while read LINE1; read LINE2; do
IFS=':-='
read -ra L1 <<< $LINE1
read -ra L2 <<< $LINE2
@precondition
precondition / _qmk
Last active October 6, 2021 18:07
Zsh autocompletion file for the QMK CLI tool. To use it, just add this file in one of the directories of your $fpath and `compdef _qmk qmk` to your .zshrc
#compdef qmk
_qmk_compile(){
_arguments \
'-h[Print help text.]' \
'--help[Print help text.]' \
"-n[Don't actually build, just show the make command to be run.]::_qmk_compile" \
"--dry-run[Don't actually build, just show the make command to be run.]::_qmk_compile" \
'-km[The keymap to build a firmware for. Ignored when a configurator export is supplied.]::_qmk_compile' \
'--keymap[The keymap to build a firmware for. Ignored when a configurator export is supplied.]::_qmk_compile' \
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)