This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nerd font v3 retired the nf-mdi- codepoints | |
# nerd font v3 release notes https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0 | |
# mapping table here: https://github.com/ryanoasis/nerd-fonts/issues/1059#issuecomment-1404891287 | |
# this script will help you find usage of the old codepoints in your files | |
BEGIN=$'\UF500' | |
END=$'\UFD46' | |
# in git repo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef lsd | |
autoload -U is-at-least | |
_lsd() { | |
typeset -A opt_args | |
typeset -a _arguments_options | |
local ret=1 | |
if is-at-least 5.2; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## A good woofers | |
## | |
$the_cow = <<EOC; | |
$thoughts __ | |
$thoughts /|$eyes|\\_____ | |
\\(-_// | \\ | |
$tongue||---|| | |
EOC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from time import sleep | |
from gpiozero import LED | |
from ADCDevice import ADS7830 | |
from threading import Thread | |
red = LED(4) | |
green = LED(5) | |
blue = LED(6) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from time import sleep | |
from gpiozero import LED | |
red = LED(4) | |
green = LED(5) | |
blue = LED(6) | |
def cycle(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
youtube-dl -x -f 251 https://www.youtube.com/watch\?v\=2RicaUqd9Hg -o "output.(ext)" && \ | |
ffmpeg -i output.opus output.wav && \ | |
rubberband -p-6 -T0.85 -F output.wav shifted.wav && \ | |
mpv shifted.wav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* first, "go get" these dependencies: | |
github.com/faiface/beep | |
github.com/hajimehoshi/oto | |
*/ | |
package main | |
import ( | |
"fmt" | |
"github.com/faiface/beep" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true; do | |
active=$( ifconfig | grep vpn ) | |
if [ -n "$active" ]; then | |
notify-send -a "vpn-notification" "Reminder: VPN Active" | |
fi | |
sleep 10 | |
done |