Skip to content

Instantly share code, notes, and snippets.

View kyeah's full-sized avatar
😇
chillin

Kevin Yeh kyeah

😇
chillin
View GitHub Profile
@kyeah
kyeah / movflags
Created September 20, 2022 21:05
Ensure videos support progressive-download
for file in file1 file2 file3; do; docker run --volume "${PWD}:/test/" jrottenberg/ffmpeg -i /test/${file} -movflags faststart -y -c copy /test/new-${file}; done
@kyeah
kyeah / sips-resizing.sh
Created September 3, 2022 19:55
Resizing images on mac
for number in 500 1000 1500 2000; do; sips --resampleWidth $number ui.png -o ui-${number}w.png; done
@kyeah
kyeah / convert-with-vlc.sh
Last active September 5, 2022 21:59
Convert mov files to mp4 with specific width for web
for filename in my-folder/*.mov; do; /Applications/VLC.app/Contents/MacOS/VLC -I dummy -vvv "$filename" --sout="#transcode{vcodec=h264,aenc=none,width=2000}:standard{access=file,mux=mp4,dst=${filename%\.mov}.m4v}" vlc://quit; done
@kyeah
kyeah / cleanup-docker.sh
Created November 2, 2020 18:37
Cleanup Docker
#!/usr/bin/env sh
# Script for cleaning up stopped containers and old/dangling images.
set -e
while getopts "f" opt; do
case "$opt" in
f) force=true
;;
*)

Keybase proof

I hereby claim:

  • I am kyeah on github.
  • I am navakevin (https://keybase.io/navakevin) on keybase.
  • I have a public key ASAtmH7FTaqcho2j3Q4XLkaLVkvLlcF5u6T5CTYrPSzHsQo

To claim this, I am signing this object:

@kyeah
kyeah / Dockerfile
Last active November 30, 2018 02:11
Dockerfile for navapbc/terraform-newrelic
FROM golang:alpine as tf-nr-provider
ENV GOPATH=/go
RUN apk add git make bash
RUN mkdir -p $GOPATH/src/github.com/terraform-providers
WORKDIR $GOPATH/src/github.com/terraform-providers
RUN git clone https://github.com/kyeah/terraform-provider-newrelic
WORKDIR $GOPATH/src/github.com/terraform-providers/terraform-provider-newrelic
RUN git checkout kev-synthetics-monitor
### Keybase proof
I hereby claim:
* I am kyeah on github.
* I am kyeah (https://keybase.io/kyeah) on keybase.
* I have a public key ASDqtBoevmqNgyy9jwrTqZ0uS-9fJllNmy2IfyUXu6EU2Ao
To claim this, I am signing this object: