Skip to content

Instantly share code, notes, and snippets.

View fluggo's full-sized avatar

Brian Crowell fluggo

View GitHub Profile
@fluggo
fluggo / cmd.sh
Created July 16, 2022 23:25
FFmpeg command to deinterlace 3:2 .m2t files
./ffmpeg \
-i /h/Videos/tape.m2t \
-c:v libx264 -profile:v main -preset:v medium -level 3.1 \
-x264opts crf=15:keyint=24:bframes=0 -aspect 16:9 -f mp4 \
-vf fieldmatch,decimate tape.mp4
@fluggo
fluggo / .eslintrc.js
Created October 20, 2021 02:55
My eslintrc
module.exports = {
env: {
es2020: true,
node: true,
},
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
'sourceType': 'module',
'tsconfigRootDir': __dirname,
@fluggo
fluggo / passwordDeriveBytes.js
Created May 8, 2021 19:05
Node.js implementation of System.Security.Cryptography.PasswordDeriveBytes
// Node.js implementation of PasswordDeriveBytes from .NET,
// which itself is a bastardization of PBKDF1.
//
// ONLY USE THIS FUNCTION FOR COMPATIBILITY PURPOSES.
// DO NOT USE THIS IN NEW CODE-- use crypto.pbkdf2 instead.
//
// See:
// * https://crypto.stackexchange.com/questions/22271/what-is-the-algorithm-behind-passwordderivebytes
// * https://referencesource.microsoft.com/#mscorlib/system/security/cryptography/passwordderivebytes.cs
function passwordDeriveBytes(password, salt, iterations, len, hashAlgorithm) {
@fluggo
fluggo / Jenkinsfile
Created May 5, 2018 03:25
Investigator Jenkins file
pipeline {
agent any
parameters {
string(name: 'COMMIT_ID', defaultValue: 'd732187cb9c46f7ddb0459f177e4465769e8d2d2', description: 'Who should I say hello to?')
}
stages {
stage('Test build') {
steps {
githubNotify status: 'PENDING',
description: 'Test description',