How to find forks of a deleted repository?
-
Go to https://cachedview.com/
-
Navigate to the deleted repo, e.g. https://webcache.googleusercontent.com/search?q=cache:https://github.com/apcera/termtables
-
Copy latest known commit sha1 signature
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# mirorred from https://code.activestate.com/recipes/577138-embed-lyrics-into-mp3-files-using-mutagen-uslt-tag/ | |
import os | |
import sys | |
import codecs | |
from mutagen.mp3 import MP3 | |
from mutagen.id3 import ID3NoHeaderError | |
from mutagen.id3 import ID3, TIT2, TALB, TPE1, TPE2, COMM, USLT, TCOM, TCON, TDRC |
#!/usr/bin/env bash | |
if [ "$#" -lt 2 ]; then | |
printf "Usage:\n $(basename $0) MyVideo.mp4 MySubtitles.srt\n" | |
else | |
ffmpeg -i "$1" -vf "subtitles=${2}, scale=540:-1" -acodec copy "${1%.mp4}-sub-540p.mp4" | |
fi | |
# FFMPEG custom build options |
#!/usr/bin/env bash | |
for device in $(diskutil list | awk '/Linux/ {print $NF}') ; do | |
read -p ">>> Found linux device: $device. Mount? y/n <<< " answer | |
if [[ "$answer" =~ [yY] ]]; then | |
mount_point="$HOME/mnt/$device" | |
mkdir -p $mount_point |
#!/usr/bin/env python3 | |
import argparse | |
import sys | |
from pathlib import Path | |
import srt | |
from opencc import OpenCC | |
from pypinyin import pinyin |
from fairseq.models.transformer import TransformerModel | |
zh2en = TransformerModel.from_pretrained( | |
'/path/to/checkpoints', | |
checkpoint_file='checkpoint_best.pt', | |
data_name_or_path='data-bin/wmt17_zh_en_full', | |
bpe='subword_nmt', | |
bpe_codes='data-bin/wmt17_zh_en_full/zh.code' | |
) | |
zh2en.translate('你好 世界') |
find . -type f -iname "*.mp4" -exec sh -c 'ffmpeg -i "${0}" -acodec copy "${0%.*}.aac"' {} \; |
#!/usr/bin/env python3 | |
import datetime | |
import subprocess | |
import sys | |
from pathlib import Path | |
# USAGE: | |
# Total duration of MP4 files (default) | |
# mp4_duration_sum.py | |
# |
Go to https://cachedview.com/
Navigate to the deleted repo, e.g. https://webcache.googleusercontent.com/search?q=cache:https://github.com/apcera/termtables
Copy latest known commit sha1 signature
#!/usr/bin/env bash | |
# Small shell script to more easily automatically download and transcribe live stream VODs. | |
# This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp | |
# Use `./transcribe-vod help` to print help info. | |
# MIT License | |
# Copyright (c) 2022 Daniils Petrovs |