Skip to content

Instantly share code, notes, and snippets.

@carylee
carylee / stith_virtual_choir.sh
Created November 8, 2020 18:50
Virtual Choir ffmpeg script: 1000 Reasons
#!/bin/bash
ffmpeg -y \
-ss 16.02 -i "10kReasons-DanaB.mp4" \
-ss 24.3 -i "John La Fond - 20201025_150703[1].mp4" \
-ss 28.40 -i "Isaac - 2020-10-26 18.36.32 - FullSizeRender.mp4" \
-ss 6.65 -i "tess.mp4" \
-ss 26.7 -i "Jackie - JNC 10000.mp4" \
-ss 24.28 -i "Claire Gebben - 20201027_165558.mp4" \
-ss 23.85 -i "mike.mp4" \
-ss 27.03 -i "Joe Frost - IMG_0742.mp4" \
@carylee
carylee / crop.py
Created November 8, 2020 18:47
Face-aware video cropping
#!/usr/bin/env python3
import click
import ffmpeg
from matplotlib import pyplot as plt
import matplotlib
import face_recognition
from PIL import Image
import numpy as np
def face_location(filename):
@carylee
carylee / stitch.sh
Created June 10, 2020 00:29
Generate a virtual quartet video
#!/bin/bash
ffmpeg -y \
-ss 5 -i "elisabeth.mp4" \
-ss 0 -i "ryan.MOV" \
-ss 7.5 -i "cary.mp4" \
-ss 2.9 -i "jackie.MOV" \
-ss 9 -i "tess.MOV" \
-ss 9 -i "Water River Spirit Grace.m4a" \
-filter_complex " \
[0:v] setpts=PTS-STARTPTS, crop=608:720:in_w/2-out_w/2+100:100, scale=912:1080 [v0]; \
@carylee
carylee / # python - 2019-02-13_12-35-43.txt
Created March 12, 2019 04:26
python on macOS 10.14.2 - Homebrew build logs
Homebrew build logs for python on macOS 10.14.2
Build date: 2019-02-13 12:35:43
filetype plugin indent on
set nocompatible
syntax on
filetype off
set tabstop=2
set shiftwidth=2
set expandtab
set termguicolors
function! BuildComposer(info)
@carylee
carylee / keybase.md
Created August 10, 2018 20:58
Keybase Proof

Keybase proof

I hereby claim:

  • I am carylee on github.
  • I am carylee (https://keybase.io/carylee) on keybase.
  • I have a public key ASAxcg5XOp_4RL_xBAnJiZkhFIoE1DIMrPKT6YoTyXbz0Qo

To claim this, I am signing this object:

@carylee
carylee / contact.json
Created July 7, 2015 19:59
Hubspot Contact API Questions
{
"addedAt": 1405347851360,
"vid": 154835,
"canonical-vid": 154835,
"merged-vids": [],
"portal-id": 62515,
"is-contact": true,
"profile-token": "AO_T-mPlyZmoCpqTNHTwZq_pcAEjmt8FIoJO67osiz9pMRNtyZ0wLvXMHgDbUKsMmIvuHnHYoaQNnwcsUgWnSvtLCBI4VNKpIfaRzaoMXnN3WB0YyBRHIdhwf3taqZq5R2gCf6_dK0lb",
"profile-url": "https://app.hubspot.com/contacts/62515/lists/public/contact/_AO_T-mPlyZmoCpqTNHTwZq_pcAEjmt8FIoJO67osiz9pMRNtyZ0wLvXMHgDbUKsMmIvuHnHYoaQNnwcsUgWnSvtLCBI4VNKpIfaRzaoMXnN3WB0YyBRHIdhwf3taqZq5R2gCf6_dK0lb/",
"properties": {
printf '%s\n' $@ | sort -u
@carylee
carylee / errors.log
Created March 6, 2012 05:42
G++ errors for routing lab
topology.cc: In member function ‘std::deque<Node*, std::allocator<Node*> >* Topology::GetNeighbors(const Node*)’:
topology.cc:65: warning: taking address of temporary
topology.cc: In member function ‘void Topology::ChangeLink(const Link*)’:
topology.cc:143: warning: taking address of temporary
topology.cc: In member function ‘void Topology::CollectShortestPathTreeLinks(const Node&, std::deque<Link, std::allocator<Link> >&)’:
topology.cc:231: warning: taking address of temporary
context.cc: In member function ‘void SimulationContext::SendToNeighbors(const Node*, const RoutingMessage*)’:
context.cc:333: warning: taking address of temporary
context.cc: In member function ‘void SimulationContext::SendToNeighbor(const Node*, const Node*, const RoutingMessage*)’:
context.cc:341: warning: taking address of temporary
@carylee
carylee / dump-downloads.sh
Created February 15, 2012 19:24
Delete items from the Downloads folder after 30 days
#!/bin/bash
find /Users/cary/Downloads -mtime +30 -exec rm -r {} \;