Skip to content

Instantly share code, notes, and snippets.

Chris Dzombak cdzombak

Block or report user

Report or block cdzombak

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
# 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
cdzombak /
Last active Apr 12, 2019
youtube-dl wrapper for downloading videos direct to the correct Plex collection on my plex Mac Mini
# all sorts of more advanced features are available, but this is a start:
if [ -z $1 ]; then
echo "Syntax: $0 VIDEO_URL"
exit 1
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 / mis
Last active Jan 8, 2019 — forked from davestephens/mis
Mystic BBS init.d script
View mis
# Provides: mis
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
cdzombak /
Created Sep 28, 2010
recursive ksort function for PHP
cdzombak / .last-uls-search-hash
Last active Mar 23, 2018
watching for my amateur radio license to appear in the FCC's database!
View .last-uls-search-hash
cdzombak / Drop Action.scpt
Created Jun 3, 2015
OmniFocus AppleScript to move an action to my " Dropped" context and mark it completed.
View Drop Action.scpt
property droppedContext : "Dropped"
tell application "OmniFocus"
tell front document
set theDroppedContextID to id of item 1 of (complete droppedContext as context)
set theDroppedContext to first flattened context whose id is theDroppedContextID
on error
display alert "No context found whose name contains “" & droppedContext & ""
View apple-iphone-batteries-slack-transcript.txt
it makes sense, and I suspect you’d see something similar on any device with a worn battery (edited)
basically everything battery powered changes clock speeds based on battery voltage level and whether you’re plugged in (_edit:_ also based on workload, so you’re not running at full speed and burning battery power when you’re not doing anything) (edited)
you can’t run a CPU at full speed when the battery voltage is low (edited)
so it follows that when the battery is worn out (and its top voltage is presumably lower), performance is consistently lower
the phone knows about battery age/wear, and takes that into account for the user-facing battery percentage meter
View CDZIdioms.h
// CDZIdioms.h
// Created by Chris Dzombak on 3/21/15.
// Copyright (c) 2015 Chris Dzombak. All rights reserved.
#ifndef CDZIdioms_h
#define CDZIdioms_h
cdzombak / CDZScalingButton.h
Created Jan 21, 2017
A UIButton with a nice scaling effect when the user touches down on it.
View CDZScalingButton.h
// CDZScalingButton.h
// ScalingButton
// Created by Chris Dzombak on 10/17/15.
// Copyright © 2015 Chris Dzombak. All rights reserved.
@import UIKit;
You can’t perform that action at this time.