Skip to content

Instantly share code, notes, and snippets.

Brewing coffee

Abe Estrada AbeEstrada

Brewing coffee
Block or report user

Report or block AbeEstrada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:804dcb819da6c237d123e4d212892bae
ffmpeg -i -vcodec h264 -acodec mp2 out.mp4
AbeEstrada / gist:dd5bbc65b4e0f4074703f9bce926a146
Created Oct 22, 2019
Download and merge (concat) video files m3u8
View gist:dd5bbc65b4e0f4074703f9bce926a146
ffmpeg -i "https://<URL>.m3u8" -codec copy video.mp4
View gist:394c5972904cd378ba42f315dd4ec10e
aom, freetype, fontconfig, frei0r, gmp, libtasn1, nettle, libffi, p11-kit, libevent, unbound, gnutls, fribidi, python, glib, lzo, pixman, cairo, graphite2, icu4c, harfbuzz, libass, libbluray, libsoxr, libvidstab, libogg, libvorbis, libvpx, opencore-amr, jpeg, libtiff, little-cms2, openjpeg, opus, rtmpdump, flac, libsndfile, libsamplerate, rubberband, sdl2, snappy, speex, giflib, webp, leptonica, tesseract, theora, x264, x265, xvid
View gist:557df2d8a5e6708b81c72dcb83f7137d
curl -d '{"page_token":"1234567890","url":"","title":"Title goes here"}' -H "Content-Type: application/json" -X POST
View .zshrc
export PATH=$HOME/.bin:/usr/local/bin:$PATH
export ZSH="/Users/Abe/.oh-my-zsh"
View gist:158cf9856c2e26eb3f8e562237cb3696
// creates an object only once - garbage be glad ^^
let cachedObject = {};
// array to be filtered
let arr = [
{id : 0, prop : 'blah'},
{id : 1, prop : 'foo'},
{id : 0, prop : 'bar'}
AbeEstrada / post-receive
Created Mar 29, 2018
Git `post-receive` script
View post-receive
while read oldrev newrev refname
branch=$(git rev-parse --symbolic --abbrev-ref $refname)
commit=$(git rev-parse --short HEAD)
AbeEstrada / index.html
Created Jan 18, 2018
React without node
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hello React</title>
<script src="^16/umd/react.production.min.js"></script>
<script src="^16/umd/react-dom.production.min.js"></script>
<script src=""></script>
AbeEstrada / dracula.go
Created Sep 26, 2017
Dracula style for chroma
View dracula.go
package styles
import (
// Dracula Style
var Dracula = Register(chroma.MustNewStyle("dracula", chroma.StyleEntries{
chroma.Comment: "#6272a4",
chroma.CommentHashbang: "#6272a4",
You can’t perform that action at this time.