Skip to content

Instantly share code, notes, and snippets.

View khebbie's full-sized avatar

Klaus Hebsgaard khebbie

View GitHub Profile
Loading
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 August 19, 2018 09:50
Simple spacemacs like init script for scala development
;; 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

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 (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 April 21, 2017 16:24
start eclipse che
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/data eclipse/che start
@khebbie
khebbie / dockerps.sh
Created December 30, 2016 12:58
docker ps alias
docker ps | less -XS
@khebbie
khebbie / read_kinesis.sh
Created November 29, 2016 08:15
Read from kinesis stream
#!/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 '"')
'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 July 6, 2016 19:40
Chapter 2 in "Functional programming in 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)
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"