Skip to content

Instantly share code, notes, and snippets.

View contolini's full-sized avatar
🏆

Chris Contolini contolini

🏆
View GitHub Profile
@contolini
contolini / README.md
Created July 8, 2026 17:23
Converting a video file into an animated gif on a Mac

Installing vid2gif command

  1. brew install ffmpeg gifsicle
  2. Paste the below vid2gif function into whatever file you store your aliases in. If you're using Oh My Zsh it's ~/.oh-my-zsh/custom/aliases.zsh.
  3. Restart your terminal session or reload your shell environment, e.g. omz reload
  4. Use the command with vid2gif --src ~/some-video.mov. You can optionally specify a target name, resolution or fps.
format = """
[▓▒░](fg:#a3aed2 bg:#769ff0)\
$directory\
[](fg:#769ff0 bg:#394260)\
$git_branch\
$git_status\
[](fg:#394260 bg:#212736)\
$nodejs\
$rust\
$golang\
@contolini
contolini / aliases.zsh
Last active October 19, 2023 16:30
ohmyzsh aliases
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias p="cd ~/Projects"
alias g="git"
alias h="history"
alias v="vim"
alias o="open"
alias oo="open ."
# Delete stuff
const startLoading = () => {
document.body.style.opacity = .5;
}
const stopLoading = () => {
document.body.style.opacity = 1;
}
const createResultItem = data => {
const div = document.createElement( 'div' );
<div class="o-info-unit-group">
<h2>Some title</h2>
<div class="content-l">
<div class="content-l_col content-l_col-1-2">
<div class="m-info-unit">
<div class="m-info-unit_image m-info-unit_image__square" style="background-image: url( 'https://via.placeholder.com/150' );">
</div>
<div class="m-info-unit_content">
<h3>A title</h3>
<div>
<div class="o-info-unit-group">
<h2>Some great things</h2>
<div class="content-l">
<div class="content-l_col content-l_col-1">
<div class="m-info-unit m-info-unit__inline">
<div class="m-info-unit_image m-info-unit_image__square" style="background-image: url( 'https://via.placeholder.com/150' );">
</div>
<div class="m-info-unit_content">
<h3>Here's a great thing</h3>
<div class="rich-text">
@contolini
contolini / deploy.md
Last active July 3, 2019 14:01
How to automatically deploy a GitHub repo's branches to surge.sh using Travis CI

First, add SURGE_USER and SURGE_TOKEN environment variables to the repo's settings page in Travis:

travis surge.sh settings

Then modify the repo's .travis.yml file to perform whatever build steps are required to generate the static website in the before_deploy step. Below, I'm installing Jekyll and building the site in the docs/ dir where my site's source files live.

language: node_js
@contolini
contolini / info.md
Last active April 23, 2019 18:56
Google Spreadsheet as CMS
@contolini
contolini / limits.md
Last active January 29, 2024 17:17
IRS Retirement Plan Contribution Limits

2024 Contribution limits

  • IRA limit is $7,000
  • HSA limit is $8,300 for family coverage ($4,150 for self-only coverage)
  • Maximum employee elective deferral is $23,000 ($30,500 if you're 50 by the end of the year)
  • Defined contribution maximum limit, all sources is $69,000

See this table for the complete list of changes.

2023 Contribution limits

Current layout

<li>
    <h5>SUBPART A</h5>
    <a>1005.1</a>
</li>
<li>
    <a>1005.2</a>