Skip to content

Instantly share code, notes, and snippets.

Jeff Pamer jeffpamer

Block or report user

Report or block jeffpamer

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
jeffpamer / init.lua
Last active Sep 30, 2016
View init.lua
local benqDisplay = "BenQ LCD"
local defaultDisplay = "Color LCD"
local padding = 20
-- disable animation
hs.window.animationDuration = 0
-- Quick if/else helper function
function fif(condition, if_true, if_false)
if condition then return if_true else return if_false end
View init.vim
"Dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
set runtimepath+=/Users/jeffpamer/.config/nvim/repos/
call dein#begin('/Users/jeffpamer/.config/nvim')
" Let dein manage dein
jeffpamer /
Created Sep 19, 2017 — forked from orumad/
How to install Wordpress from command line in Valet

How to install Wordpress from command line in Valet

I use Valet as my local web development environment (PHP, Laravel, Wordpress, ...)

This gist is my own recipe to install Wordpress from the command line to use it with Valet. Maybe this is useful for you too.

Install 'WP-CLI' command line tool

View .spacemacs
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
;; Base distribution to use. This is a layer contained in the directory
jeffpamer /
Created Mar 16, 2018
Smooth Scrubbing Web Video FFMPEG Mega Command
ffmpeg -i input.mp4 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3 -an -vf "scale=-1:1440, reverse" -preset veryslow -g 2 output.mp4
// -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3
// Encode for web with a good balance of browser compatibility and compression ratio
// -an
// Strip audio tracks
// -vf "scale=-1:1440, reverse"
// Scale video to 1440px wide, maintaining aspect ratio
You can’t perform that action at this time.