Skip to content

Instantly share code, notes, and snippets.

View Tweetus-Bot's full-sized avatar
🏴‍☠️

Tweetu Tweetus-Bot

🏴‍☠️
View GitHub Profile
@vmassuchetto
vmassuchetto / youtube-dl-cron.sh
Last active September 26, 2023 12:21
Shell script cron job to download YouTube videos from your subscription feed
#!/bin/bash
#
# Script to keep downloading YouTube videos to your computer using youtube-dl:
# http://rg3.github.io/youtube-dl/
#
# Put it to work:
#
# sudo wget "https://gist.github.com/vmassuchetto/10338703/raw" -O /etc/cron.hourly/youtube-dl-cron.sh
# sudo chmod +x /etc/cron.hourly/youtube-dl-cron.sh
@joepie91
joepie91 / vpn.md
Last active July 20, 2024 13:53
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.
@tanaikech
tanaikech / submit.md
Last active June 29, 2024 10:51
Downloading Files From Google Drive Under No Authorization Using Browser

Downloading Files From Google Drive Under No Authorization Using Browser

This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.

Demo

@simon987
simon987 / youtube-dl_soundcloud.md
Created October 16, 2018 00:10
snippet for using youtube-dl to download soundcloud playlists

Heres a snippet for using youtube-dl to download soundcloud playlists:

youtube-dl -w -o "Playlist/%(playlist_title)s (%(playlist_uploader)s) - %(playlist_id)s/%(title)s.%(ext)s" -f bestaudio --embed-thumbnail --add-metadata https://soundcloud.com/tommisch/sets
@simon987
simon987 / flac2mp3_V0.py
Created October 28, 2018 17:30
Multi-threaded python script to convert all flac files to mp3 V0 while keeping the directory structure
import os
from shutil import copyfile
import pathlib
from multiprocessing import Pool, Value
SRC = "/mnt/Data1/Music"
DST = "/mnt/Data1/Music [V0]"
to_convert = []
counter = Value("d")
@mpyw
mpyw / free_email_provider_domains.txt
Last active May 7, 2024 10:26 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. All forks from the original gist are merged. The list only contains valid hostnames.
0039.cf
0039.ga
0039.ml
00b2bcr51qv59xst2.cf
00b2bcr51qv59xst2.ga
00b2bcr51qv59xst2.ml
02466.cf
02466.ga
02466.ml
07819.cf
@smartass08
smartass08 / mount.py
Last active December 31, 2020 12:35
AutoMount all gclone teamdrives available in account
from __future__ import print_function
from google.oauth2 import service_account
from googleapiclient.discovery import build
import sys
import os
import time
SCOPES = ['https://www.googleapis.com/auth/drive.readonly']
gc = "gclone mount --daemon" # Always use --daemon or it may break stuff
@smartass08
smartass08 / rclone_mount.py
Last active June 8, 2021 20:21
A mount script which will fetch all your TeamDrives using service account and mount it using rclone mount
from __future__ import print_function
from google.oauth2 import service_account
from googleapiclient.discovery import build
import sys
from glob import glob
import os
SCOPES = ['https://www.googleapis.com/auth/drive.readonly']
remote = 'docs:' # Always use --daemon or it may break stuff
folder_location = "/Volumes/MyShit/Mounts"
Note : These are the settings i wrote by observing the Mediainfo of RARBG Encodes , these might not be 100% identical to RARBG Encodes.
These are FFMPEG Settings.
See comment below to see the code