A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
# Controls: `space` to jump | |
import curses | |
import random | |
from curses import wrapper | |
def gen_path() -> str: | |
path = "_" * 50 + "".join( | |
[ |
""" | |
A tool to convert images into Braille art | |
Depends on: Pillow - Python Imaging Library | |
To install, do: | |
$ pip install Pillow | |
Usage: | |
$ python imgToBraille.py --help | |
""" |
--++-++---++---+--++-+----+++-----++-+-+--++--+---++--++--++------++-++---++--++--++-+----+++-----++-+---++--+----++--++--++-++---++-+---++---++--++-+++--+++--+--++--++--+++--+--++-+++--+++--+--++-+-+--+++--+--++-++---+++--+--++--++--++-+-+--++-++--++--+-+--++-++---++-+-+--++-+-+--++--++--++--++--+++--+--++-+++--+++-----++-++---++--++--++-++--++--+----++-+---++--+-+--++-+++--++-+-+--++-++---++-+-+--++-++--++--+-+--++-++--++--++---++--++-++--+-- |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
import os | |
import random | |
import re | |
import requests | |
from PIL import Image, UnidentifiedImageError | |
headers = { | |
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0" | |
} |
#!/usr/bin/python | |
import curses | |
import random | |
import string | |
from curses import wrapper | |
import _curses | |
After doing a lot of VM-hopping, from QEMU to VirtualBox and whatnot, I finally decided to stick to VMWare Player (not sponsored btw) to use as my go to hyperviser. Granted, its paid counterpart or even its other open source counterparts might have more features to offer, but I decided to stick to ease of use and reliability. For some reason, VirtualBox just dies when KDE is run on it, and QEMU tends to pose a lot of display scaling issues sometimes. I'm not saying that VMWare is always perfect either, but it's still more usable, in my opinion. So I put together a small guide to set stuff up as easily as possible on an Arch/Arch-based machine.
Note: This tutorial is focussed on Arch based distros. The steps should be the same on just about anything else; however, the name of the packages might differ.
# Usage: | |
# python vidres.py path/to/input/video [path/to/output/video] | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
data = subprocess.run( |
numpy==1.23.2
Pillow==9.2.0
pyzbar==0.1.9
qrcode==7.3.1
Note
- Depending on your system, you might need to have zbar installed on your system to get the scripts to work.
You may have experienced when dual booting that you need to re-pair your bluetooth devices (ie., Headphones, mouse, keyboard, etc) this usually happens because you have already paired the device with another operating system using the same bluetooth adapter when dual booting (either Linux or Windows).
Some devices cannot handle multiple pairings associated with the same MAC address (ie., bluetooth adapter). As per suggested on the ArchWiki you can fix this by re-pairing the device each time, but there's actually another solution to not do so each time you choose to use your device on a different OS.
Easy, just pair the device on a OS and copy the bluetooth keys generated to the other OS so our device doesn't notice the difference.