Skip to content

Instantly share code, notes, and snippets.

View jmcbee's full-sized avatar
💭
Single and Ready to Mingle

Jolli McBee jmcbee

💭
Single and Ready to Mingle
View GitHub Profile
@jmcbee
jmcbee / .block
Last active February 10, 2017 07:17 — forked from mbostock/.block
Hexagonal Binning
license: gpl-3.0
@jmcbee
jmcbee / index.html
Last active December 12, 2016 09:31 — forked from indiemaps/walmart.html
test of d3.hexbin with walmart locations
<html>
<head>
<title>Walmart locations all hexed up</title>
http://mbostock.github.com/d3/d3.js
<!-- styles -->
<link rel="stylesheet" type="text/css" href="http://indiemaps.github.com/hexbin-js/style/main.css" />
<link rel="stylesheet" type="text/css" href="http://indiemaps.github.com/hexbin-js/style/colorbrewer.css" />
<link rel="stylesheet" type="text/css" href="http://indiemaps.github.com/hexbin-js/style/colorbrewer.stroke.css" />
<style type="text/css">
'use strict';
var winston = require('winston');
var Syslog = winston.transports.SyslogConsole = function (options) {
var Producer = require('glossy').Produce;
winston.Transport.call(this, options);
this.producer = new Producer({
appName: options.appName || 'winston',
host: options.host || require('os').hostname(),
#!/bin/bash
video=bbb_sunflower_2160p_60fps_normal.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 180k -maxrate 180k -vf scale="trunc(oh*a/2)*2:240" -crf 23 -c:a libvorbis -b:a 128k 240p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 300k -maxrate 300k -vf scale="trunc(oh*a/2)*2:360" -crf 23 -c:a libvorbis -b:a 192k 360p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 500k --maxrate 500k vf scale="trunc(oh*a/2)*2:480" -crf 23 -c:a libvorbis -b:a 256k 480p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 1000k -maxrate 1000k -vf scale="trunc(oh*a/2)*2:720" -crf 23 -c:a libvorbis -b:a 256k 720p.mp4
ffmpeg -i "$video" -t 60 -c:v libx264 -profile:v baseline -preset veryfast -b:v 2000k -maxrate 2000k -vf scale="trunc(oh*a/2)*2:1080" -crf 23 -c:a libvorbis -b:a 256k 1080p.mp4
diff --git a/runcoms/zpreztorc b/runcoms/zpreztorc
index a54fdb0..7dafc6a 100644
--- a/runcoms/zpreztorc
+++ b/runcoms/zpreztorc
@@ -32,7 +32,8 @@ zstyle ':prezto:load' pmodule \
'spectrum' \
'utility' \
'completion' \
- 'prompt'
+ 'prompt' \
diff --git a/modules/prompt/functions/prompt_peepcode_setup b/modules/prompt/functions/prompt_peepcode_setup
index a83710e..74ccd78 100644
--- a/modules/prompt/functions/prompt_peepcode_setup
+++ b/modules/prompt/functions/prompt_peepcode_setup
@@ -19,6 +19,7 @@ function +vi-git-status() {
function prompt_peepcode_precmd {
vcs_info
+ git-info

Unpopular Sublime Text Keyboard Shortcuts

  • alt+. - close html tag
  • alt+- - jump back
  • alt+shift+- - jump forward
function eatShit() {
ffmpeg -i "$1" -vcodec libx264 -s vga -preset slow -crf 24 -pix_fmt yuv420p -acodec libmp3lame -aq 5 ${1%%.*}-reencode.mp4
}