Skip to content

Instantly share code, notes, and snippets.

View alanhogan's full-sized avatar

Alan Hogan alanhogan

View GitHub Profile
@craiglittle
craiglittle / selections.txt
Last active March 9, 2019 04:37
Prior selections by the Zendesk Film Salon
Weiner (2016) - Josh Lam [March 17, 2017]
Rumble in the Bronx (1995) - Josh Lam [March 24, 2017]
Grey Gardens (1975) - Kristina Garfinkel [March 31, 2017]
Real Genius (1985) - Alex Stone [April 7, 2017]
Trainspotting (1996) - Kristen Mirenda [April 14, 2017]
Mulholland Drive (2001) - Craig Little [April 21, 2017]
Blue Velvet (1986) - Kristen Mirenda [April 28, 2017]
Dear Zachary: A Letter to a Son About His Father (2008) - Josh Lam [May 5, 2017]
One Flew Over the Cuckoo's Nest (1975) - Kristina Garfinkel [May 12, 2017]
The Man from Earth (2007) - Sujay Sudheendra [May 26, 2017]

npm shrinkwrap is useful, but maddening (once it's in place and you want to update a package).

Say you've got a package.json with module ember-cli as a devDependency currently at version 1.13.1. And you have an npm-shrinkwrap.json file too, generated with the --dev flag.

If you change the version of ember-cli to, say, 1.13.8 in package.json and run npm install, nothing will happen.

If you do that and manually change references in the shrinkwrap file, you will still have trouble (as nested dependencies may now be incorrect).

So what do we actually do?

@lisamelton
lisamelton / transcode-video.sh
Last active September 8, 2023 23:51
Transcode video file (works best with Blu-ray or DVD rip) into MP4 (or optionally Matroska) format, with configuration and at bitrate similar to popular online downloads.
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2015 Don Melton
#
about() {
cat <<EOF
$program 5.13 of April 8, 2015
@tekacs
tekacs / show
Created April 20, 2011 17:55
This does something essentially equivalent to showoff.io if you have a publicly facing server...
# Usage: show <local-port> <subdomain>
function show() {
DOMAIN=".tekacs.com"
REMOTE="$2$DOMAIN"
ssh -tR 1080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:1080 localhost"
}
@mattwiebe
mattwiebe / sd_lessn.php
Created January 11, 2011 18:25
Lessn More integration for WP
<?php
/*
Plugin Name: Lessn Shortlinks
Description: Integrates WP's shortlink functionality with the <a href="http://lessnmore.net/">Lessn More</a> URL shortener. <em>Hasn't been tested with vanilla Lessn, but the API should be compatible.</em> (Edit the file manually to configure)
Version: 1.0
Author: Matt Wiebe
Author URI: http://somadesign.ca/
*/
/**
import os
import httplib
import tornado.web
class ErrorHandler(tornado.web.RequestHandler):
"""Generates an error response with status_code for all requests."""
def __init__(self, application, request, status_code):
tornado.web.RequestHandler.__init__(self, application, request)
self.set_status(status_code)