Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Create a dev environment on AL2023
#
# AWS CDK with toolchains for dev in [Python|NodeJS|Rust|TypeScript]
#
# OS Packages
sudo dnf -y install docker gcc git jq htop
# Docker compose plugin
@spohnan
spohnan / mov-speed.sh
Created September 4, 2021 17:45
ffmpeg mov screenshot speedup
# https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
# setpts at .02 is about 1min->1sec and is great for longish running, 10min, video captures with little activity
docker run --rm -v $(pwd):/tmp jrottenberg/ffmpeg -i /tmp/screenshot.mov -filter:v "setpts=0.02*PTS" -preset slow -crf 18 /tmp/test3.m4v
@spohnan
spohnan / s3vd.sh
Created June 3, 2020 10:45
S3 versioned bucket object diff
#!/bin/bash
# s3vd [bucket] [object] [v1 index] [v2 index]
bucket=${1:-bucket-name}
object=${2:-default-object}
get_object="aws s3api get-object --bucket $bucket --key $object"
v1=${3:-0}
v2=${4:-1}

Keybase proof

I hereby claim:

  • I am spohnan on github.
  • I am hassiumlabs (https://keybase.io/hassiumlabs) on keybase.
  • I have a public key whose fingerprint is 57CD 32DE 3894 3360 F65F CD35 8DA8 9D61 E987 33C2

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am spohnan on github.
* I am spohnan (https://keybase.io/spohnan) on keybase.
* I have a public key whose fingerprint is 8EDB A1E0 05FF BD09 12C1 F912 F44C B04A F88C 0A1B
To claim this, I am signing this object:
@spohnan
spohnan / safer_move.sh
Created October 25, 2011 12:48
Uses rsync and ssh for transfer, compression and encryption. Notification of file changes provided by inotify-tools.
#!/bin/bash
#
# Safer Move
#
# Uses rsync and ssh for transfer, compression and encryption
# Notification of file changes provided by inotify-tools which
# is available as source or .deb (Ubuntu) or rpm through EPEL repo.
# https://github.com/rvoicilas/inotify-tools/wiki/
#
# Assumes you've set up your ssh key for password-less login