sudo apt update && sudo apt -y install build-essential git curl gdb make cmake ninja-build meson
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 os | |
import shutil | |
import pathlib | |
from urllib.parse import unquote | |
FILE_PATH="E:\\a-metal1.m3u" | |
def app(): | |
lines = [] | |
with open(FILE_PATH, "r") as f: |
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
use x509_parser::prelude::*; | |
fn main() -> anyhow::Result<()> { | |
print_cert()?; | |
print_cert_static()?; | |
Ok(()) | |
} |
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 script is not totally error free. If your seas path has any spaces, it will shit itself out. Be careful | |
## Also, I usually run this on docker to avoid having to deal with ffmpeg dependencies on the host machine (linuxserver/ffmpeg) | |
#!/bin/sh | |
set -e | |
seas="/media/Videos" # place with videos | |
pushd "$seas" | |
files=$(find . -type f -name "*.mkv" | xargs -0) |
apt install -y libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-gtk3-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev libmbedtls-dev libcurl4-openssl-dev libegl1-mesa-dev libpng-dev qtbase5-private-dev libxxf86vm-dev x11proto-xinerama-dev
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/sh | |
### This will compile a bzImage and the modules the latest version on the repository | |
### Required a file "config_default" to compile with | |
set -ex | |
unique=$(date +%s) | |
version=$(git ls-remote --refs --tags https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git | cut -d" " -f2 | cut -d'/' -f3 | sort | tail -1) | |
curl -4 -L --url "https://git.kernel.org/torvalds/t/linux-$version.tar.gz" -o linux-"$version"_"$unique".tar.gz | |
tar xvf linux-"$version"_"$unique".tar.gz | |
cd linux_"$version"_"$unique" |
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
D 42.546245 1.601554 Andorra | |
AE 23.424076 53.847818 United Arab Emirates | |
AF 33.93911 67.709953 Afghanistan | |
AG 17.060816 -61.796428 Antigua and Barbuda | |
AI 18.220554 -63.068615 Anguilla | |
AL 41.153332 20.168331 Albania | |
AM 40.069099 45.038189 Armenia | |
AN 12.226079 -69.060087 Netherlands Antilles | |
AO -11.202692 17.873887 Angola | |
AQ -75.250973 -0.071389 Antarctica |
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
#!/usr/bin/python2 | |
import os | |
def generate_script(cue_file, file_path, file_name): | |
d = open(cue_file).read().splitlines() | |
general = {} | |
tracks = [] |
NewerOlder