Skip to content

Instantly share code, notes, and snippets.

View mcbrineellis's full-sized avatar

Connor McBrine-Ellis mcbrineellis

View GitHub Profile
@nbeirne
nbeirne / fizzbuzz.py
Last active October 8, 2025 02:56
fizzbuzz.py
c=lambda a: lambda b: a
d=lambda n: lambda f: lambda x: f(n(f)(x))
e=lambda n: lambda f: lambda x: n(lambda a: lambda b: b(a(f)))(lambda y: x)(lambda y: y)
g=lambda a,b: lambda f: lambda x: a(f)(b(f)(x))
h=lambda a,b: lambda f: lambda x: a(b(f))(x)
i=lambda a,b: b(e)(a)
j=lambda n: n(lambda x: lambda a: lambda b: b)(c)
k=d(lambda f: lambda x: x)
l=d(k)
m=d(l)
@CPT-GrayWolf
CPT-GrayWolf / aacsdb-update
Last active September 22, 2025 06:51
Install Blu-Ray AACS VUK keys for libaacs automatically from the FindVUK database.
#!/bin/bash
#
# This is a simple bash script, designed to allow
# quick download and installation of the FindVUK
# AACS VUK database.
#
# This allows Blu-Ray disks who's VUK is known
# to be played on systems using libaacs.
#
# It's reccomended to schedule this file to run
@kaitoii11
kaitoii11 / vcenter-api.md
Last active April 29, 2025 23:45
Sample on how to use vCenter API
  • Authenticate to vCenter to get user credential.
# curl -k -X POST https://<FQDN or IP>/rest/com/vmware/cis/session -u <USERNAME>:<PASSWORD> | jq
{
  "value": "SESSIONID"
}
  • Save the session id to a variable
# ID=SESSIONID
@jashmenn
jashmenn / final-cut-it-out.js
Created September 21, 2017 11:44
Remove Silence from Final Cut Pro clips, automatically, using ffmpeg timecodes and OSX JavaScript Automation - Demo: https://imgur.com/a/Zisav
#!/usr/bin/env osascript -l JavaScript
/**
* Delete silence from Final Cut Pro timeline using a script.
* Demo: https://imgur.com/a/Zisav
*
* This script accepts an ffmpeg silencedetect log as input.
*
* To setup, have fcp running along with your clip selected. Ensure that the
* timecode will start at zero before running this script. That is, if your clip
@mcls
mcls / osx_setup.md
Last active October 9, 2023 08:23 — forked from jpantuso/osx_lion_rail_setup.md
Setup mac for ruby dev