This file contains hidden or 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
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
import argparse | |
parser = argparse.ArgumentParser(description='Crop an image.') | |
parser.add_argument('image', metavar='image', type=str, help='the image to crop') | |
parser.add_argument('left', metavar='left', type=int, help='the left side to crop') | |
parser.add_argument('right', metavar='right', type=int, help='the right side to crop') | |
parser.add_argument('top', metavar='top', type=int, help='the top side to crop') |
This file contains hidden or 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 | |
ZSH_CONFIG=~/.zshrc | |
PLUGINS=~/.local/zsh_plugins | |
if [[ $EUID -eq 0 ]]; then | |
echo "This script must not be executed using sudo directly. Exiting..." | |
exit 1 | |
fi |
This file contains hidden or 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 os | |
import subprocess | |
import argparse | |
from pytube import Playlist, YouTube, Stream | |
# Used to solve pytube.exceptions.AgeRestrictedError | |
from pytube import innertube | |
innertube._default_clients["ANDROID_MUSIC"] = innertube._default_clients["ANDROID_CREATOR"] |