Skip to content

Instantly share code, notes, and snippets.

View cdgriffith's full-sized avatar

Chris Griffith cdgriffith

View GitHub Profile
@cdgriffith
cdgriffith / lscpu.json
Created December 8, 2023 16:27
LSCPU Output
{
"lscpu": [
{
"field": "Architecture:",
"data": "x86_64",
"children": [
{
"field": "CPU op-mode(s):",
"data": "32-bit, 64-bit"
},{
2023-02-09T14:30:20.2896342Z Requested labels: macos-11
2023-02-09T14:30:20.2896401Z Job defined at: cdgriffith/Box/.github/workflows/tests.yml@refs/heads/tests
2023-02-09T14:30:20.2896430Z Waiting for a runner to pick up this job...
2023-02-09T14:30:22.1249992Z Job is waiting for a hosted runner to come online.
2023-02-09T14:30:31.2613041Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2023-02-09T14:30:34.9108890Z Current runner version: '2.301.1'
2023-02-09T14:30:34.9145790Z ##[group]Operating System
2023-02-09T14:30:34.9146560Z macOS
2023-02-09T14:30:34.9146880Z 11.7.3
2023-02-09T14:30:34.9147130Z 20G1116
@cdgriffith
cdgriffith / output.log
Created February 9, 2023 03:09
python -m pip install pip --upgrade && python -m pip debug --verbose && SYSTEM_VERSION_COMPAT=0 python -m pip debug --verbose
2023-02-09T02:44:16.3620560Z + /bin/sh -c 'python -m pip install pip --upgrade && python -m pip debug --verbose && SYSTEM_VERSION_COMPAT=0 python -m pip debug --verbose'
2023-02-09T02:44:19.9866870Z Requirement already satisfied: pip in /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/cibw-run-g41dzlcc/cp39-macosx_universal2/venv-test/lib/python3.9/site-packages (22.3.1)
2023-02-09T02:44:20.2404400Z Collecting pip
2023-02-09T02:44:20.2539880Z Using cached pip-23.0-py3-none-any.whl (2.1 MB)
2023-02-09T02:44:20.3681520Z Installing collected packages: pip
2023-02-09T02:44:20.3759440Z Attempting uninstall: pip
2023-02-09T02:44:20.3819010Z Found existing installation: pip 22.3.1
2023-02-09T02:44:21.6086860Z Uninstalling pip-22.3.1:
2023-02-09T02:44:21.6517080Z Successfully uninstalled pip-22.3.1
2023-02-09T02:44:23.7407280Z Successfully installed pip-23.0
@cdgriffith
cdgriffith / mac.log
Last active February 5, 2023 18:56
mac build log for cibuildwheel
2023-02-05T18:52:16.5661183Z Requested labels: macos-12
2023-02-05T18:52:16.5661223Z Job defined at: cdgriffith/Box/.github/workflows/tests.yml@refs/pull/248/merge
2023-02-05T18:52:16.5661250Z Waiting for a runner to pick up this job...
2023-02-05T18:52:26.3775178Z Job is waiting for a hosted runner to come online.
2023-02-05T18:52:26.4775497Z Job is about to start running on the hosted runner: Hosted Agent (hosted)
2023-02-05T18:52:30.5112020Z Current runner version: '2.301.1'
2023-02-05T18:52:30.5154960Z ##[group]Operating System
2023-02-05T18:52:30.5155600Z macOS
2023-02-05T18:52:30.5155830Z 12.6.3
2023-02-05T18:52:30.5156040Z 21G419
@cdgriffith
cdgriffith / pyproject.toml
Created February 4, 2023 16:18
Box pyproject that wont build with poetry-core
[tool.black]
line-length = 120
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
exclude = '''
/(
\.eggs
| \.git
| \.idea
| \.pytest_cache
| _build
@cdgriffith
cdgriffith / FSR.glsl
Created February 24, 2022 21:35 — forked from agyild/FSR.glsl
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
CPU Family: 0x6
@cdgriffith
cdgriffith / download_movie_posters.py
Last active March 14, 2021 18:48
Download Movie Posters from imdb
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Requires python3 and requests library (pip install requests)
Provide the folder containing all the other folders of movies as the only arguement.
python3 download_movie_posters.py "C:\My Movies"
"""
@cdgriffith
cdgriffith / rosetta_stone.py
Created January 25, 2021 19:40
Use the standard library as Egyptian Hieroglyphs!
# Usage: from rosetta_stone import *
import abc as 𓀀
import aifc as 𓀁
import argparse as 𓀃
import ast as 𓀄
import asynchat as 𓀅
import asyncio as 𓀆
import asyncore as 𓀇
import base64 as 𓀈
@cdgriffith
cdgriffith / compare_vmaf_ssim.py
Created July 2, 2020 18:23
Compare a movie via VMAF to a lot of different encoding settings
from subprocess import run, PIPE, STDOUT
from pathlib import Path
from datetime import datetime
import os
movie_file = "video_compare/glass.mp4"
file_name = "glass"
output_directory = "video_compare/ffmpeg"