Skip to content

Instantly share code, notes, and snippets.

local clockingLog = hs.logger.new("clocking")
local clockingMenu = hs.menubar.new()
local currentTask = nil
local function trim(s)
return (s:gsub("^%s*(.-)%s*$", "%1"))
end
local function eval(sexp, callback)
hs.task.new(
@mgkennard
mgkennard / agenda.30m.sh
Created March 1, 2018 14:51
BitBar plugin to display today's Org-mode agenda
#!/usr/bin/env bash
# <bitbar.title>Agenda</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Matthew Kennard</bitbar.author>
# <bitbar.author.github>mgkennard</bitbar.author.github>
# <bitbar.desc>Shows the Org-mode agenda</bitbar.desc>
# <bitbar.dependencies>bash</bitbar.dependencies>
echo "Today"
@mgkennard
mgkennard / gist:39484500f0a9a57030ce
Created January 29, 2016 13:49
AppCode log excerpt
016-01-26 14:20:31,934 [2713852] WARN - cution.filters.CompositeFilter - OCStackTraceConsoleFilter.applyFilter() took 10110 ms on ''' 1 libobjc.A.dylib 0x000000010aba8deb objc_exception_throw + 48
@mgkennard
mgkennard / udid_check.sh
Created November 5, 2013 16:56
If dealing with ad hoc builds and not using TestFlight then this little Bash script has provided useful on a number of occasions. Save and run on command line passing in the path to the IPA. In return you will get the list of UDIDs in the provisioning profile it was built against,
#!/bin/bash
#
#
#
function usage
{
echo "Usage: $0 FILE"
}