Skip to content

Instantly share code, notes, and snippets.

View eyeseast's full-sized avatar

Chris Amico eyeseast

View GitHub Profile
@eyeseast
eyeseast / gif2vid.sh
Last active May 22, 2018 16:26
Convert a gif to mp4
#!/bin/sh
# https://unix.stackexchange.com/questions/40638/how-to-do-i-convert-an-animated-gif-to-an-mp4-or-mv4-on-the-command-line
# ./gif2vid.sh animated.gif animated.mp4
ffmpeg -i "$1" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" "$2"

Keybase proof

I hereby claim:

  • I am eyeseast on github.
  • I am chrisamico (https://keybase.io/chrisamico) on keybase.
  • I have a public key ASAFLVqaoDDo7YgzgfSRaQVocAoSIaAFE03RPaYBbu6vCAo

To claim this, I am signing this object:

@eyeseast
eyeseast / mantras.txt
Last active March 2, 2020 19:42
Annual mantras
2013: Resist the urge to be clever.
2014: Everything takes practice.
2015: The internet works. We should use it.
2016: One problem at a time.
2017: Don't panic.
2018: Some things we have to learn the hard way.
2019: Maybe nobody knows anything.
2020: The best code is no code.
@eyeseast
eyeseast / 2018.md
Last active January 1, 2019 04:28
2018 goals
  • Start using a password manager
  • Save 20% of our income
  • Launch at least one project from my brainstorm list
  • Floss every day in 2018
  • Do at least 50 pushups or squats a day (or 350 a week)
  • Compete in jiujitsu at least once
  • Take a family vacation
  • Get a nice (professional) family photo taken
  • Launch something using Docker, Kubernetes, etc.
  • Launch something using a reactive framework (Svelte, React, Vue, etc)
@eyeseast
eyeseast / https.conf
Created October 18, 2017 19:19
Conditionally redirect to HTTPS
# Any request that did not originally come in to the ELB
# over HTTPS gets redirected.
if ($http_x_forwarded_proto != "https") {
rewrite ^(.*)$ https://$server_name$1 permanent;
}
@eyeseast
eyeseast / embed.py
Created January 23, 2017 22:03
Quick script to generate OEmbeds from CLI
#!/usr/bin/env python
"""
Quick script to get an embed code
"""
import sys
import micawber
from micawber.providers import Provider
providers = micawber.bootstrap_basic()
@eyeseast
eyeseast / example.py
Created January 17, 2017 19:55
dictionary comprehension
{str(i): i for i in range(10)}
@eyeseast
eyeseast / 2017.md
Last active January 8, 2018 03:15
2017 goals
  • Read at least 12 books (whether it's one a month, or whatever)
  • Save 20% of our income
  • Floss every day in 2017
  • Rebuild my personal website (rough plan here)
  • Launch at least one project from my brainstorm list
  • Launch a project using modern javascript packaging (webpack, rollup, etc) and ES6
  • Launch a project using asynchronous Python
  • Do at least 50 pushups a day (or 350 a week)
  • Compete in jiujitsu at least once
  • Take a family vacation
@eyeseast
eyeseast / site.md
Created December 9, 2016 19:21
A plan for my personal site, post-blog

I don't blog anymore. My last post was Feb. 2, 2013. I should capture the archives and give up that ghost.

My personal site, going forward, should have:

  • a professional bio
  • contact info
  • social links (twitter, linkdedin, FB, instagram)

I'd like to have a stream of links to stuff I'm reading. That's the biggest build thing.

@eyeseast
eyeseast / gdoc.css
Created December 1, 2016 15:51
Inline stylesheet that came with a Google Doc HTML export
ol {
margin: 0;
padding: 0
}
table td,
table th {
padding: 0
}
.c1 {
font-size: 11pt;