Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am weitzj on github.
  • I am weitzj (https://keybase.io/weitzj) on keybase.
  • I have a public key ASAMoEhDDBmHspvWgcYyHkttcVDL36tBIPP3ssAL44ytwAo

To claim this, I am signing this object:

@weitzj
weitzj / init.lua
Created June 30, 2017 12:58
Hammerspoon Config
--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()
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
}else{
cfg->pub_mode = MSGMODE_STDIN_FILE;
}
+#ifdef WITH_TLS
+ }else if(!strcmp(argv[i], "--sni-hostname")){
@weitzj
weitzj / gvm.fish
Created May 17, 2014 13:52
fish shell function for gvm
function gvm
bash -c '. ~/.gvm/bin/gvm-init.sh; gvm "$@"' gvm $argv
end
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
weitzj / build.gradle
Created January 9, 2012 00:17
groovy, java, intellij IDEA setup
/**
* 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