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 | |
yeet=$(youtube-dl -cites --write-auto-sub $1) | |
ext=mp4 | |
#in case title pull fails, set yeet to uuidgen | |
echo "yeet is: " "${#yeet}" | |
echo $2 | |
if [ -z "$yeet" ] || [ "${#yeet}" -gt 254 ] | |
then | |
yeet=$(uuidgen) |
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 -cit --write-auto-sub $1 | |
yeet=$(youtube-dl -cites --write-auto-sub $1) | |
#in case title pull fails, set yeet to uuidgen | |
if [ -z "$yeet" ] | |
then | |
yeet=$(uuidgen) | |
fi |
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 | |
USBDIR="/home/pi/usbmount" | |
AUDIODIR="/home/pi/sounds" | |
freq=$(cat /home/pi/settings.txt) | |
name=$(cat /home/pi/name.txt) | |
radtxt=$(cat /home/pi/radiotext.txt) | |
echo "mounting usb" | |
sudo mount -t vfat -o rw,users /dev/sda1 $USBDIR |
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
ffmpeg -y -i output.mp3 -ignore_loop 0 -t 28800 -i kel.gif -filter_complex "[0:a]showwaves=s=400x240:mode=line,colorkey=0x000000:0.01:0.1,format=yuva420p[v];[1:v][v]overlay[outv]" -map "[outv]" -pix_fmt yuv420p -map 0:a -c:v libx264 -c:a copy -shortest output1.mp4 |
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
youtube-dl -s --print-json --dateafter 20180101 --datebefore 20181001 "https://www.youtube.com/user/USER/videos" | jq -r '.upload_date','.fulltitle','.webpage_url' |
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
import sys | |
import urllib2 | |
source = sys.argv.pop() | |
response = urllib2.urlopen(source) | |
html = response.read() | |
wordBreak = ['<','>'] | |
html = list(html) | |
i = 0 | |
while i < len(html): |
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 | |
curl 'https://api.coinbase.com/v2/prices/LTC-USD/spot' 2>/dev/null | jq '.data'.'amount' --raw-output |
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 | |
curl 'https://api.coinbase.com/v2/prices/LTC-USD/spot' 2>/dev/null | jq '.data'.'amount' --raw-output |
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 | |
arecord -f S16_LE -D hw:1,0 $(date '+%Y-%m-%d_%H-%M-%s.wav') |
NewerOlder