Skip to content

Instantly share code, notes, and snippets.

@mikeybeck
mikeybeck / hammerspoon - URL handler alert.lua
Last active September 29, 2018 09:42
[URL handler alert] #hammerspoon
hs.urlevent.bind("someAlert", function(eventName, params)
hs.alert.show("Hey there alert")
end)
-- After having this line in init.lua
-- you can then call it from the shell like so
open -g hammerspoon://someAlert
@mikeybeck
mikeybeck / hammerspoon - Bind function to hotkey.lua
Last active September 29, 2018 09:41
[Bind function to hotkey] #hammerspoon
hs.hotkey.bind("ctrl", "return", function()
hs.notify.new({title="Hammerspoon", informativeText="Hello World"}):send()
end)
@mikeybeck
mikeybeck / slack2html.php
Last active October 31, 2018 16:51 — forked from jordanmkoncz/slack2html.php
slack2html
<?php
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//