Skip to content

Instantly share code, notes, and snippets.

View muhh's full-sized avatar

Markus Heurung muhh

View GitHub Profile
function Intialize() {
return;
}
function Install() {
ScriptApp.newTrigger("purgeGmail")
.timeBased().everyMinutes(10).create();
}
function Uninstall() {
#!/usr/bin/env ruby
# A simple status updater. Changes presence status on Sqwiggle and Slack.
# Posts message to our Slack #company channel
#
# Author: Markus Heurung <[email protected]>
#
# Copyright 2015 Markus Heurung
#
# Licensed under the Apache License, Version 2.0 (the "License");
@muhh
muhh / todays_dayones.rb
Last active August 29, 2015 14:06
get dones from dayone created in the last 24 hours
require 'rb-dayone'
s = DayOne::Search.new do
creation_date.after Time.now - (24*60*60)
tag.include "done"
end
s.results.each do |entry|
entry.entry_text.slice! "#done"
puts entry.entry_text

Keybase proof

I hereby claim:

  • I am muhh on github.
  • I am muhh (https://keybase.io/muhh) on keybase.
  • I have a public key whose fingerprint is 146D 9428 C0FD 6CF1 344C 0B77 8F4A 94C1 FD4F 13C9

To claim this, I am signing this object:

@muhh
muhh / private.xml
Last active October 11, 2015 19:48
my private.xml for Karabiner to map CAPSLOCK to ⌘⌥⌃⇧ and map other keys on my Filco Ninja Majestouch-2, Tenkeyless
<?xml version="1.0"?>
<root>
<item>
<name>Map CAPSLOCK to ⌘⌥⌃⇧ + CAPSLOCK Only, send escape)</name>
<appendix>This needs CAPSLOCK to be mapped to 0x6e (PC_APPLICATION) by Seil and Capslock turned off in system settings / keyboard / special keys</appendix>
<identifier>private.capslocktocmdoptioncontrolshift</identifier>
<autogen>
--KeyOverlaidModifier--<!-- --KeyToKey-- -->
KeyCode::PC_APPLICATION,
KeyCode::CONTROL_L, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L,
@muhh
muhh / pagerduty.coffee
Created May 30, 2012 16:45
partial hubot pagerduty integration
# Interacts with PagerDuty
# Author: Markus Heurung <[email protected]>
#
# pd inc(idents) [all|ack(nowledged)|res(olved)] - list incidents (only all for now)
# pd ack(nowledge) <key> - acknowledge incident - not fully working yet
# pd res(olve) <key> - resolve incident - not fully working yet
# pd #ID - show incident details - not working yet
# pd trigger <description> - create new incident