Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am weitzj on github.
  • I am weitzj ( on keybase.
  • I have a public key ASAMoEhDDBmHspvWgcYyHkttcVDL36tBIPP3ssAL44ytwAo

To claim this, I am signing this object:

weitzj / init.lua
Created Jun 30, 2017
Hammerspoon Config
View init.lua
--required to be non zero for dragging windows to work some weird timing issue with hammerspoon fighting against osx events
hs.window.animationDuration = 0.00000001
-- require "vim"
moveOnScreenCmd = {"cmd", "shift"}
hs.hotkey.bind(moveOnScreenCmd, "H", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
View mosquitto_1.4.2_SNI.diff
diff --git a/client/client_shared.c b/client/client_shared.c
index 00f5c6c..e2c3696 100644
--- a/client/client_shared.c
+++ b/client/client_shared.c
@@ -505,6 +505,16 @@ int client_config_line_proc(struct mosq_config *cfg, int pub_or_sub, int argc, c
cfg->pub_mode = MSGMODE_STDIN_FILE;
+#ifdef WITH_TLS
+ }else if(!strcmp(argv[i], "--sni-hostname")){
weitzj /
Created May 17, 2014
fish shell function for gvm
function gvm
bash -c '. ~/.gvm/bin/; gvm "$@"' gvm $argv
import javafx.application.Application;
import javafx.application.Platform;
import javafx.concurrent.Worker;
import javafx.scene.Scene;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
import org.w3c.dom.Node;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
weitzj / build.gradle
Created Jan 9, 2012
groovy, java, intellij IDEA setup
View build.gradle
* Initial build.gradle script to wrap groovy/java scripts into one fat jar file.
* (including some nice tools for scripting: GROOVY, GPARS, LOG4J, ANTBUILDER, CLI-PARSER)
* Project Setup via:
* gradle makeDirs
* IntelliJ IDEA integration:
* gradle idea