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/sh | |
WEEK=($(LC_ALL="POSIX" locale -k day | gawk -v FS=';' -v RS='"' '/[a-z]$/')) | |
open "https://goo.gl/maps/VrA8z886JGGvYvBh7"; sleep 10; N="${#WEEK}"; SEQ=$(seq 0 $[$N-1]) | |
CHT="cht=p"; CHS="chs=999x999"; CHP="chp=$(bc -l <<< '6*a(1)')"; CHL="chl=$(seq -s '|' 7 19)"; N="6" | |
CHLPS="chlps=font.size,25|textStrokeWidth,5|textStrokeColor,FFFFFF|color,000000|align,end|offset,200" | |
CHCO="chco=7F7F7F|7F0000|FF0000|FF7F00|FFFF00|7FFF00|00FF00|00FF7F|00FFFF|007FFF|0000FF|7F00FF|FF00FF" | |
TAB=($(chrome-cli source | gawk -v FS='%? ' -v RS='"' '/ [0-9]+% .*:00/ {if ($3 != 0) print $3}' | rs -C',' $N)) |
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
BEGIN{ printf( "%s\n\n", ";FFMETADATA1"); t=0} | |
/duration/{ printf( "%s\n%s%d\n%s%.0f\n%s%.0f\n\n", "[CHAPTER]", "TIMEBASE=1/", 10^6, "START=", t*10^6, "END=", $5*10^6); t=$5} | |
END{ printf( "%s\n%s%d\n%s%.0f\n%s%.0f\n\n", "[CHAPTER]", "TIMEBASE=1/", 10^6, "START=", t*10^6, "END=", d*10^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
[default] | |
pause | |
keep-open | |
fullscreen | |
geometry=0:0 | |
hwdec=vaapi | |
framedrop=vo |
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/sh | |
curl -L -O github.com/alphacep/vosk-api/archive/refs/heads/master.zip | |
unzip master.zip; rm master.zip; cd vosk-api-master/python/example; pwd | |
curl -L -O alphacephei.com/kaldi/models/vosk-model-small-en-us-0.15.zip | |
curl -L -O alphacephei.com/kaldi/models/vosk-model-small-it-0.4.zip | |
unzip *-model-*-en-*.zip; unzip *-model-*-it-*.zip; rm *.zip; cd ${0%/*} | |
pwd; chmod +x vosk-srt.sh; cp -v vosk-srt.sh /usr/local/bin/vosk-srt | |
sudo mv -v $OLDPWD $(pip show vosk | awk '/Loc/{print $2}')/vosk-api |
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/sh | |
URL="https://www.xcodereleases.com/data.json" | |
SWV="$(sw_vers | awk '/1[0-9]\./{print $2}')" | |
JQF=".[] | select(.sdks.macOS[]?.number \ | |
| test(\$swv)) | .version.number, halt" | |
xcodes install $(curl --location -k -v $URL \ | |
| jq --arg swv ${SWV%.*} "$JQF" | tr -d \") |
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/sh | |
URL=$(curl -L -S -s $(gh repo view mas-cli/mas | awk -F '[()]' '/apple/{print $2}') | awk -F '"' '/updates/{print $4}') | |
curl -O $URL; hdiutil attach ${URL##*/}; sudo installer -target / -pkg /Volumes/${${URL##*/}%%.*}/${${URL##*/}%%.*}.pkg | |
hdiutil detach -verbose /Volumes/${${URL##*/}%.*}; rm -v ${URL##*/}; brew tap mas-cli/tap; brew install mas-cli/tap/mas |
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/zsh | |
# Flash a message in Morse code with an USB light | |
uhubctl -a 1; sleep 4.0 | |
UHCOPTS=$(uhubctl | awk '{ text=text"\n"$0; if ($0~/hub/) text=$0; if (text~/power$/) { print text; text="" } }' \ | |
| awk -F',| |:' -v ORS=" " '{ print $5 }' | awk '{ print "-p "$2" -l "$1 }') | |
uhubctl -a 0 ${=UHCOPTS} | |
alias dit="uhubctl -a 1 $UHCOPTS; sleep 0.1; uhubctl -a 0 $UHCOPTS" | |
alias dah="uhubctl -a 1 $UHCOPTS; sleep 0.6; uhubctl -a 0 $UHCOPTS" |
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 | |
# 999dice.com claim faucet | |
import sys | |
import time | |
from selenium import webdriver as WD | |
from selenium.webdriver.common.by import By |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.zerowidth.launched.icdc</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>-c</string> |
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/sh | |
CHANNEL="$1" | |
PHPSESSID="$(curl -s -I "https://untwitch.com/" \ | |
| gawk -F '=|;' '/PHPSESSID/{print $2}')" | |
VIDEOID="$(curl -s "https://twitchrss.appspot.com/vod/$CHANNEL" \ | |
| gawk -v RS='<|>' -v FS='/' '/\/videos\//{print $5; exit}')" | |
URL="twitch.tv%2Fvideos%2F$VIDEOID&format=Audio_Only&from=1&to=150" | |
curl -L "https://untwitch.com/" -d "url=$URL" -H "Cookie: PHPSESSID=$PHPSESSID" -o "$VIDEOID.mp4" |