Skip to content

Instantly share code, notes, and snippets.


Klaus Hebsgaard khebbie

View GitHub Profile
View gurger.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
khebbie / init.el
Created Aug 19, 2018
Simple spacemacs like init script for scala development
View init.el
;; global variables
global-font-lock-mode 1
inhibit-startup-screen t
create-lockfiles nil
make-backup-files nil
column-number-mode t
scroll-error-top-bottom t
show-paren-delay 0.5
use-package-always-ensure t
View IRSSI cheat

IRSSI cheat sheet

make window sticky

Move to window with /win i where i is the window number
Now to show the window
/win 1 show

To move between windows


Keybase proof

I hereby claim:

  • I am khebbie on github.
  • I am khebbie ( on keybase.
  • I have a public key ASBHma2dBgATkyY6DhsULVjdZ1b1EdL3gW0BzRWiWs3-Kwo

To claim this, I am signing this object:

khebbie /
Created Apr 21, 2017
start eclipse che
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/data eclipse/che start
khebbie /
Created Dec 30, 2016
docker ps alias
docker ps | less -XS
khebbie /
Created Nov 29, 2016
Read from kinesis stream
while :
shardIds=$(aws kinesis describe-stream --stream-name $stream_name | jq '.StreamDescription.Shards[].ShardId' | tr -d '"')
for shard in $shardIds;do
iterator=$(aws kinesis get-shard-iterator --stream-name $stream_name --shard-id $shard --shard-iterator-type LATEST | jq '.ShardIterator' | tr -d '"')
View siteuptime.js
'use strict';
var aws = require('aws-sdk');
var https = require('https');
var ses = new aws.SES();
var processingContext = {
noOfSuccesses: 0,
failures: [],
endpoints: [
{url: "", statusCode: 200},
{url: "", statusCode: 200}
khebbie / exercise_chap2.scala
Last active Jul 6, 2016
Chapter 2 in "Functional programming in Scala"
View exercise_chap2.scala
package chapter2
object MyMain{
def partial1[A,B,C](a:A, f: (A,B)=> C):B=>C={
(b:B)=> f(a,b)
def curry[A,B,C](f: (A,B)=> C): A=> (B=>C)={
(a:A) => (b:B)=> f(a,b)
View .zshrc
plugins=(git, autojump, fasd)
export EDITOR='git'
# User configuration
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games$
export PATH="$HOME/.rbenv/bin:$PATH"
export PATH="$HOME/Downloads/android-studio/bin:$PATH"