Skip to content

Instantly share code, notes, and snippets.

@porjo
porjo / retext.css
Last active August 13, 2018 03:54 — forked from elclanrs/retext.css
Markdown theme for ReText
body {
color: #333;
font-family: Arial, sans-serif;
max-width: 7.5in;
margin: 0 auto;
}
a:link, a:visited {
color: #1B70D1;
text-decoration: none;
// Forked from: https://gist.github.com/melbourne2991/8822609
//
// Below is an example of a directive that let's other directives know when there has been a change
// in a breakpoint, as well as a windows resize, the event is triggered on the window resize and
// broadcast on $rootScope. The arguments contain the current & previous breakpoints. Previous will
// be null if there is yet to be a change in breakpoint.
//
app.directive('bsBreakpoint', function($window, $rootScope, $timeout) {
return {
controller: function() {
@porjo
porjo / README.md
Last active August 29, 2015 14:03 — forked from mmoulton/README.md
Docker stats collection for collectd

Forked from: https://gist.github.com/mmoulton/6224509

Docker stats collection for collectd

This script can be used to feed collectd with cpu and memory usage statistics for running docker containers using the collectd exec plugin.

This script will report the used and cached memory as well as the user and system cpu usage by inspecting the appropriate cgroup stat file for each running container.

Usage