Skip to content

Instantly share code, notes, and snippets.

Klaus Hebsgaard khebbie

Block or report user

Report or block khebbie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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
khebbie / init.el
Created Aug 19, 2018
Simple spacemacs like init script for scala development
View init.el
;; global variables
(setq
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 sheet.md

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

View keybase.md

Keybase proof

I hereby claim:

  • I am khebbie on github.
  • I am khebbie (https://keybase.io/khebbie) on keybase.
  • I have a public key ASBHma2dBgATkyY6DhsULVjdZ1b1EdL3gW0BzRWiWs3-Kwo

To claim this, I am signing this object:

@khebbie
khebbie / eclipse_che.sh
Created Apr 21, 2017
start eclipse che
View eclipse_che.sh
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/data eclipse/che start
@khebbie
khebbie / dockerps.sh
Created Dec 30, 2016
docker ps alias
View dockerps.sh
docker ps | less -XS
@khebbie
khebbie / read_kinesis.sh
Created Nov 29, 2016
Read from kinesis stream
View read_kinesis.sh
#!/bin/bash
stream_name=$1
while :
do
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: "https://www.test.com", statusCode: 200},
{url: "https://www.test2.com", statusCode: 200}
@khebbie
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'
SHELL=zsh
# 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"
You can’t perform that action at this time.