You will need FFMPEG installed and available in your path.
Run pip install -r requirements.txt
, then run python3 main.py
.
In out/
, you'll get:
You will need FFMPEG installed and available in your path.
Run pip install -r requirements.txt
, then run python3 main.py
.
In out/
, you'll get:
I find it a huge pain to introduce new machines as authorized hosts when linking them up to my existing servers. While enterprise-level systems exists for sysadmins to manage thousands of SSH Keys, I am but a simple man with his hoard of servers.
Hence, I created these scripts to alleviate the pain & hassle of adding a new hosts to my servers.
FROM ubuntu:latest | |
RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y python3 python3-pip openjdk-18-jre coreutils curl wget libcairo2-dev libgirepository1.0-dev | |
WORKDIR /tmp | |
RUN curl -s https://api.github.com/repos/AsamK/signal-cli/releases/latest \ | |
| grep "browser_download_url.*Linux.tar.gz\"$" \ | |
| cut -d : -f 2,3 \ | |
| tr -d \" \ | |
| grep ".gz$" \ | |
| wget -qi - |
#include <iostream> | |
//==RELATED TO INTERVIEW== | |
//Q: Return next element (if 9, return 11), -2 if next element doesn't exist, -1 if element itself doesn't exist | |
struct Node { | |
Node *left = nullptr; | |
Node *parent = nullptr; | |
Node *right = nullptr; | |
int value = 0; | |
}; |
import traceback | |
import os | |
while True: | |
try: | |
import app | |
break | |
except BaseException as e: | |
stack_summary = traceback.extract_tb(e.__traceback__) | |
frame_summary = stack_summary.pop() |
The below is a LUA script that can pull out at most 100 videos from a playlist URL, and add it to your VLC playist. It's basically a clone of the youtube.lua
script linked within the youtube-playlists.lua
file, but with all the frills removed, because I still want an updated copy of youtube.lua
from the official VideoLAN team.
If you're using VLC <=3.0.4, you'd probably not be able to play some videos, especially those from VIVO or otherwise. To fix this, put this youtube.lua
script into the same directory as you would for youtube-playlists.lua
. This should allow you to watch those videos now.