Skip to content

Instantly share code, notes, and snippets.

Parnell Springmeyer ixmatus

Block or report user

Report or block ixmatus

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
sirkonst / docker-prune.service
Created Nov 22, 2018
Remove unused docker resources with systemd (service and timer)
View docker-prune.service
Description=Remove unused docker resources
ExecStart=/usr/bin/docker system prune -f --filter "until=744h"
ExecStart=/usr/bin/docker volume prune -f
jsomers / websters-kindle.mdown
Created May 19, 2014
How to make the Webster's 1913 your default Kindle dictionary
View websters-kindle.mdown

How to make the Webster's 1913 your default Kindle dictionary

  1. Download a Kindle-compatible version of the dictionary here. Unzip the .rar archive.

  2. Get the "Send to Kindle" program on your computer. Here's the link for the Mac.

  3. Right-click your recently downloaded (unzipped) dictionary file, and click the "Send to Kindle" menu item. It will arrive on your Kindle shortly.

  4. Once the dictionary has arrived, go to your settings -- on my newish paperwhite, it's at Home > Settings > Device Options > Language and Dictionaries > Dictionaries > English. Choose the Webster's 1913.

jpetazzo /
Last active Apr 5, 2016
Share a directory with a docker container


The diode bridge is the simplest rectifier I know.

Rectifier lets you share a directory with a docker container (just like $yourvm shared folders).

You don't have to install anything in your containers, and you only need to install diod in the host. diod is packaged on Ubuntu/Debian distros, and will automatically be apt-get install-ed if needed.

Since it uses diod to make a bridge, I called it rectifier. Yeah, that sucks, so if you have a better name, I'll steal it!

fukubaya / emacs-24.1-lion-fullscreen-test.patch
Created Jun 13, 2012
MaxOSX Lion fullscreen patch for emacs 24.1
View emacs-24.1-lion-fullscreen-test.patch
--- src/nsterm.m.orig 2012-06-14 01:05:10.000000000 +0900
+++ src/nsterm.m 2012-06-14 01:07:56.000000000 +0900
@@ -5507,6 +5507,7 @@
[win setAcceptsMouseMovedEvents: YES];
[win setDelegate: self];
[win useOptimizedDrawing: YES];
+ [win setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
sz.width = FRAME_COLUMN_WIDTH (f);
sz.height = FRAME_LINE_HEIGHT (f);
FiloSottile / rasterize.js
Created May 12, 2012
PhantomJS rasterize.js with "Retina" output
View rasterize.js
var page = require('webpage').create(),
address, output, size;
if (phantom.args.length < 2 || phantom.args.length > 3) {
console.log('Usage: rasterize.js URL filename');
} else {
address = phantom.args[0];
output = phantom.args[1];
page.viewportSize = { width: 1280, height: 1024 };
lstoll / gist:2411499
Created Apr 18, 2012 — forked from lclarkmichalek/gist:1657284
Flymake mode for golang
View gist:2411499
(require 'flymake)
(defun flymake-go-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
(local-file (file-relative-name
(file-name-directory buffer-file-name))))
(list "go" (list "build" "-o" "/dev/null" temp-file))))
You can’t perform that action at this time.