Skip to content

Instantly share code, notes, and snippets.

View McFlat's full-sized avatar

Alex Goretoy McFlat

  • EARTH
View GitHub Profile
@McFlat
McFlat / peertube-download-videos.sh
Created November 7, 2020 05:20
Download peertube videos incrementally using a video id to access at the found videos to get all data json and mp4 from the website
#!/usr/bin/env bash
# created by Alex Goretoy
# download videos from any peertube site, troo.tube by default
# creates a directory named after the domain where to download all videos
PEERTUBE_URL="${1:-https://troo.tube}";
DOMAIN_NAME=$(echo "${PEERTUBE_URL}" | awk -F[/:] '{print $4}');
START="${2:-0}";
FINISH="${3:-99999}"
@McFlat
McFlat / balls.sh
Last active November 12, 2020 18:40
#!/usr/bin/env bash
# this program should work only on linux and mac not windows
# this program download files from server one at a time instead of many in order to avoid errors due to rate limits
# 1. download/install mini client program first called mc
# https://min.io/download#/linux
# https://min.io/download#/macos
# 2. configure the server to download videos from
# mc config host add download-troo https://data.troo.tube:443 download 123-Jesus-Christ-Lives-321
# 3. find a directory on the server to download all the videos from website or with mc ls command
@McFlat
McFlat / ig.sh
Created November 12, 2020 21:49
#!/usr/bin/env bash
# this script downloads instagram posts and ig profile pictures
trap kill_it TERM # 15 - Termination signal
trap kill_it PIPE # 13 - Broken pipe: write to pipe with no
trap kill_it SEGV # 11 - Invalid memory reference
trap kill_it KILL # 9 - Kill signal
trap kill_it FPE # 8 - Floating point exception
trap kill_it ABRT # 6 - Abort signal from abort(3)
@McFlat
McFlat / getit.sh
Last active November 19, 2020 05:32
#!/usr/bin/env bash
# this program should work only on linux and mac not windows
# this program download files from server one at a time instead of many in order to avoid errors due to rate limits
# 1. download/install mini client program first called mc
# https://min.io/download#/linux
# https://min.io/download#/macos
# 2. configure the server to download videos from
# mc config host add download-troo https://data.troo.tube:443 download 123-Jesus-Christ-Lives-321
# 3. find a directory on the server to download all the videos from website or with mc ls command