Skip to content

Instantly share code, notes, and snippets.

@ParityError
ParityError / pydiag.py
Created April 27, 2024 23:59
Python Diagnostics
#!/usr/bin/env python
import sys
import importlib.util
import os
def print_python_info():
# Print Python version
print("Python Version:")
print(sys.version)
@ParityError
ParityError / ffmpeg_sync.py
Last active April 21, 2024 17:30
ffmpeg audio/video sync
import subprocess
def extract_audio_ffmpeg(input_file, output_file, start_time, end_time):
command = [
'ffmpeg',
'-i', input_file,
'-ss', start_time, # Start time in HH:MM:SS format
'-to', end_time, # End time in HH:MM:SS format
'-async', '1', # Attempts to correct for any sync issues
'-c:a', 'pcm_s16le', # Uncompressed WAV output
@ParityError
ParityError / a1111.svg
Created March 5, 2023 16:18
automatic1111 logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ParityError
ParityError / automatic1111.svg
Created March 4, 2023 08:46
automatic1111 logo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ParityError
ParityError / automatic1111.svg
Created February 27, 2023 07:20
automatic1111 animated svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ParityError
ParityError / blueprint.css
Last active March 8, 2023 01:15
blueprint.css stylesheet for automatic1111
/*
.-----::...
:++--=*+==::.
.++*= =*+==::.
.+****- =*+==::.
.+******- +*+==::.
.+********- +*+==::.
.+**********: +*+==::.
+************: +*+=-::.
+**************: .**+=-::.
@ParityError
ParityError / retrowave.css
Last active March 8, 2023 01:20
retrowave .css stylesheet for automatic1111
/*
.-----::...
:++--=*+==::.
.++*= =*+==::.
.+****- =*+==::.
.+******- +*+==::.
.+********- +*+==::.
.+**********: +*+==::.
+************: +*+=-::.
+**************: .**+=-::.
@ParityError
ParityError / mizf.sh
Created June 29, 2019 11:31
mizf (Original)
#!/bin/sh
#
# Mizar Verifier, example shell command
#
accommodate()
{
makeenv $1
if [ "$?" = "0" ]
then
@ParityError
ParityError / clang.analyzer.checkers-9.0.md
Created March 1, 2019 19:31
LLVM Clang Analyzer Checker Additions 9.0

The following analyzer checkers have been added to the latest svn version of llvm vs macOS 10.14 llvm:

alpha.cplusplus.EnumCastOutOfRange
Check integer to enumeration casts for out of range values

alpha.cplusplus.InvalidatedIterator
Check for use of invalidated iterators

alpha.cplusplus.IteratorModeling
Models iterators of C++ containers

@ParityError
ParityError / get_cert_locations.php
Created January 24, 2019 06:28
Default macOS ssl cert locations
$ php -r "print_r(openssl_get_cert_locations());"
Array
(
[default_cert_file] => /private/etc/ssl/cert.pem
[default_cert_file_env] => SSL_CERT_FILE
[default_cert_dir] => /private/etc/ssl/certs
[default_cert_dir_env] => SSL_CERT_DIR
[default_private_dir] => /private/etc/ssl/private
[default_default_cert_area] => /private/etc/ssl
[ini_cafile] =>