How to use a pseudo-random number generator:
- Include the necessary headers:
If you did this previously...
#!/usr/bin/env python3 | |
import socket | |
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
sock.sendto(b"Cookie/tGSIMonjf803gVn4GaOQhjPwd45NxbWbSlNuN2/UPI=", ("127.0.0.1", 5005)) |
Adapted the guide in a form friendly for use with yomichan and software that can read yomichan dictionary format (e.g. Didactical Enigma)
Place the .json files in a .zip file. Files must be in root directory, which is why "Download ZIP" option won't work.
#!/bin/bash | |
find -name '.nomedia' -delete | |
for i in *; do | |
newname=$(echo "$i" | sed -r 's/.*Ch\.([0-9]+)\.?([0-9]*).*$/\1 \2/' | awk '{ printf("%05d%02d", $1, $2) }') | |
mv "$i" "$newname"; | |
done | |
find -name '*.png' -print0 -or -name '.jpg' -print0 | while IFS= read -r -d '' file; do d=`dirname $file`; b=`basename $file`; mv "$file" "${d}/${d}_${b}"; done |
!/bin/bash | |
API="http://127.0.0.1:5000" | |
EMITHEADER=1 | |
PROMPTFILE=`mktemp` | |
PROMPTSTART=$'Write detailed free-form summary in six paragraphs of this part of the transcript of the following YouTube video.\n\nTEXT: ' | |
SPLIT_LINES=48000 | |
TRANSCRIPTDIR=`mktemp -d` | |
gettranscript "$1" en 2> /dev/null | sed -e 's/<\/b>/-/g' -e 's/<[^>]*>//g' | split -l "$SPLIT_LINES" - "${TRANSCRIPTDIR}/tr" |