Skip to content

Instantly share code, notes, and snippets.

View cdgriffith's full-sized avatar

Chris Griffith cdgriffith

View GitHub Profile
@cdgriffith
cdgriffith / transactionParser.js
Last active January 19, 2018 16:31
NiceHash Transaction Parser
/*
Takes a NiceHash mining transaction CSV file and converts it to a monthly average. Ignores non-mining lines.
Requires `csv`
$ npm install csv
Example usage:
$ node transactionParser.js
@cdgriffith
cdgriffith / keybase.md
Created February 1, 2018 04:03
Keybase Proof

Keybase proof

I hereby claim:

  • I am cdgriffith on github.
  • I am cdgriffith (https://keybase.io/cdgriffith) on keybase.
  • I have a public key ASBaFmoTGd3xUm-9c-oMYpdLjv4qGdCDApkAQaQLgGuHJQo

To claim this, I am signing this object:

@cdgriffith
cdgriffith / x265_passthrough.py
Created October 25, 2019 18:26
HDR color primaries and luminance passthrough options
#!/usr/bin/env python
from subprocess import run, PIPE
import re
import sys
import json
su = re.compile(r'",\s*}')
def run_ffprobe(video_file):
@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"
@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 / 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"
"""
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 / 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
@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 / 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