Skip to content

Instantly share code, notes, and snippets.

# by codl <>
# put this in /usr/libexec/netdata/charts.d
# chown root:netdata and chmod +x
sidekiq_check() {
redis-cli get 'stat:processed' > /dev/null 2> /dev/null
View Swift

Hello Everyone,

The Swift 3 release is nearing completion, so it is time to look back on the release, learn from what happened, and use it to shape what we (the Swift community) do in the year ahead. Overall, Swift 3 is going to be an absolutely amazing release, and it is impressive how much got done. Thank you to everyone who contributed to making it happen. Instead of diving into a flurry of new proposals immediately, it is important to take stock of where we are, and look at the bigger picture.

Metapoint: this email is ridiculously long and covers multiple topics. Instead of replying to it directly, it is best to start new threads on individual topics that you’d like to discuss. Just tag them with “[Swift 4]” in the subject line.

Swift 3 Retrospective

Every year of Swift’s development has been completely different from the previous one, and I expect Swift 4 to continue this trend. With a goal of learning and improving year over year, here are some observations & retrospective about Swi

View PSPDFUIKitMainThreadGuard.m
// PSPDFUIKitMainThreadGuard.m
// <your project> via
// Created by Chris Dzombak on 9/16/14.
// Taken from the commercial iOS PDF framework
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved.
// Licensed under MIT (
View things-to-of.applescript
-- Import tasks from Things to OmniFocus
-- Script taken from:
-- Added: creation date, due date, start date functionality
-- Empty your Things Trash first.
-- Note that this won't move over scheduled recurring tasks.
cdzombak / dropbox
Created January 11, 2014 23:05 — forked from migrs/dropbox
View dropbox
# /etc/init.d/dropbox
# Provides: dropbox
# Required-Start: $network $syslog $remote_fs
# Required-Stop: $network $syslog $remote_fs
# Should-Start: $named $time
# Should-Stop: $named $time
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop the dropbox daemon for debian/ubuntu
View gist:5086228
# reminder for h.264 + theora <video> preflighting. ignoring stupid webm for now.
# html5 code looks like (yes, the single/double quotes are correct)
# use medieelement.js for flash fall-through
# <video width="600" height="450">
# <source src="http://.../screencast.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
# <source src="http://.../screencast.ogv" type='video/ogg; codecs="theora, vorbis"'>
# </video>
# convert mov container to mpeg-4
cdzombak / gist:3860927
Last active October 11, 2015 12:47 — forked from andrewsardone/gist:3859525
enum types in C/Objective-C
View gist:3860927
// unpredictable backing type for this enum
typedef enum {
} CDZType;
// vs.
enum {