A nicer way to see what aliases you're running.
This file contains 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
#--------------------------------------------------------------------------------------------------------------------- | |
# _____ _____ _____ | |
# /\ \ /\ \ /\ \ | |
# /::\ \ /::\ \ /::\____\ | |
# \:::\ \ /::::\ \ /:::/ / | |
# \:::\ \ /::::::\ \ /:::/ / | |
# \:::\ \ /:::/\:::\ \ /:::/ / | |
# \:::\ \ /:::/__\:::\ \ /:::/____/ | |
# \:::\ \ \:::\ \:::\ \ /::::\ \ |
This file contains 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/env python3 | |
from argparse import ArgumentParser | |
import os | |
from urllib.parse import parse_qsl, urlparse | |
import requests | |
from random import randint | |
HEADERS = { | |
'Connection': 'keep-alive', |
This file contains 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/env python3 | |
''' | |
gist: https://gist.github.com/Fitzy1293/ccacc7a4420ff4a1a42d2f97dd5e1823 | |
''' | |
import sys | |
class Colors: | |
magenta = '\033[1;95m' |
Status codes for https://www.youtube.com/watch?v=c8j2vAjZ16I&t=4629s
200 https://www.tiktok.com/@dy4pmt5h6g/video/7064065828454403333
404 https://www.tiktok.com/@pineha_volodymyr/video/7066896465032924422
404 https://www.tiktok.com/@matb3bal/video/7067880395378871553
404 https://www.tiktok.com/@viskova2/video/7068136830872440070
200 https://www.tiktok.com/@mr.cupcake_off4/video/7068150265609784581
This file contains 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 cv2 | |
import os, sys | |
# Each video has a frame per second which is number of frames in every second | |
frame_per_second = 60 # smooth as shit bo | |
image_folder = sys.argv[1] | |
tempvid = 'output.mp4' | |
video_output = sys.argv[2] | |
# go back and change this to accept any sat as an arg |
This file contains 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
''' | |
Started with https://github.com/nemanjastokuca/tiktok-downloader/blob/main/tiktok-downloader.py as a template. | |
random ukraine example: https://www.tiktok.com/@kharchuk.in/video/7068699049892891909 | |
''' | |
from argparse import ArgumentParser | |
import os, subprocess # subprocess for ffmpeg | |
from urllib.parse import parse_qsl, urlparse | |
import requests |
This file contains 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
class MenuItem: | |
"""Models each Menu Item.""" | |
def __init__(self, name, water, milk, coffee, cost): | |
self.name = name | |
self.cost = cost | |
self.ingredients = { | |
"water": water, | |
"milk": milk, | |
"coffee": coffee | |
} |
This file contains 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
#------------------------------------------------------------------------------------------------------------------------------------------------------- | |
def current_http_pid(): | |
previously_active_pid = os.popen('ps aux | grep "python.*http.server.*8000" | head -n 1 | awk \'{ print $2 }\'').read() | |
return previously_active_pid | |
#------------------------------------------------------------------------------------------------------------------------------------------------------- | |
if __name__ == '__main__': | |
markdown_string = markdown_blog_text() | |
run_html_update(markdown_string) |
This file contains 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 subprocess | |
import os | |
import argparse | |
parser = argparse.ArgumentParser(description='Process some integers.') | |
parser.add_argument('-c,', '--convert', dest='CONVERT_TYPE', help='filetype to convert to') | |
ARGS = parser.parse_args() | |
def convert_to_other_ebook_format(input_ebook, output_format): |
NewerOlder