Skip to content

Instantly share code, notes, and snippets.


Jimmy Rittenborg JimmyRittenborg

View GitHub Profile
ryansechrest /
Last active Apr 20, 2020
New and enhanced bash commands for developers on Mac OS X.
# ---------------------------------------------------------------------------
# File: .bash_commands
# Author: Ryan Sechrest
# Website:
# Description: New and enhanced bash commands for developers on Mac OS X.
dkubb / ssl.nginxconf
Last active Apr 11, 2019
Nginx SSL configuration (PFS, HSTS, SPDY, BREACH mitigation, FIPS compliant)
View ssl.nginxconf
ssl_certificate cert.pem;
ssl_certificate_key cert.key.pem;
ssl_dhparam cert.dh.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers FIPS@STRENGTH:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
PaulKinlan / criticalcss-bookmarklet-devtool-snippet.js
Last active Nov 5, 2022
CriticalCSS Bookmarklet and Devtool Snippet.js
View criticalcss-bookmarklet-devtool-snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles =;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
gdamjan /
Last active Nov 4, 2022
Setup for an easy to use, simple reverse http tunnels with nginx and ssh. It's that simple there's no authentication at all. The end result, a single ssh command invocation gives you a public url for your web app hosted on your laptop.


A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.

Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).


murtaugh / 1. single-line.html
Last active Apr 21, 2021
Blockquote patterns for ALA
View 1. single-line.html
<figure class="quote">
<blockquote>It is the unofficial force—the Baker Street irregulars.</blockquote>
igrigorik / gist:3148848
Created Jul 20, 2012
Convert any YouTube video into an audio file you can listen to on the go...
View gist:3148848
# Convert any YouTube video into an audio file you can listen to on the go, using:
{ ~ } > brew install ffmpeg
{ ~ } > wget
{ ~ } > chmod u+x youtube-dl
# Pick which video format you want to download.. (use any YT video link)
{ ~ } > ./youtube-dl -s -F
#!/usr/bin/perl -w
use strict;
use DBI;
use Net::FTP;
use Switch;
use POSIX qw(strftime);
use Text::Wrap;
$Text::Wrap::columns = 120;
our %remote_login; #ftp or scp log in information
our $remote_type; #is it ftp or scp?
bjeanes / README.markdown
Created Sep 4, 2008
A completely up-to-date Cap2 deployment recipe for Media Temple Grid Server + Git
View README.markdown

Media Temple Capistrano Deployment Recipe

With GitHub

See comments in the files for explanation. This works flawlessly for me on MediaTemple + Git(Hub).

To use:

On the Server

  1. SSH into your MediaTemple server.
  2. Put your public key into ~/.ssh/authorized_keys2 with mode 0600