Skip to content

Instantly share code, notes, and snippets.

View rbjorklin's full-sized avatar

Robin Björklin rbjorklin

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rbjorklin on github.
  • I am rbjorklin (https://keybase.io/rbjorklin) on keybase.
  • I have a public key whose fingerprint is 4FFE A26B 3963 4762 AD27 DF62 2AA7 170A 069C EE65

To claim this, I am signing this object:

@rbjorklin
rbjorklin / Jenkinsfile
Created April 6, 2017 06:22
Jenkinsfile without mailing on ABORTED status
post {
failure {
echo "${currentBuild.currentResult}" // Always contains FAILURE
script {
try {
exec = currentBuild.rawBuild.getOneOffExecutor()
result = exec.abortResult().toString()
} catch (e) {
echo "${e.message}" // "Scripts not permitted to use method hudson.model.Executor abortResult"
}
@rbjorklin
rbjorklin / gelf-log.stacktrace
Last active January 29, 2018 10:09
Java stacktrace from GELF-appender in infinite loop.
"qtp1958402562-67368037" #67368037 prio=5 os_prio=0 tid=0x00007f0188ae0800 nid=0x4d5b runnable [0x00007f01c2ff1000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
;SendMode Play ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
SetKeyDelay, 500,50
; Intermediate training 1/2
F1::
@rbjorklin
rbjorklin / eio-https-request.ml
Last active September 18, 2023 00:28
eio https request
(**
#require "tls-eio"
#require "cohttp-eio";;
#require "eio_main";;
#require "mirage-crypto-rng-eio";;
*)
open Eio
open Cohttp_eio