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 / .osx.sh
Created May 13, 2014 06:14
Mac OS X setup
#!/usr/bin/env bash
# ~/.osx — http://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
(defun dotspacemacs/layers ()
(setq-default
dotspacemacs-configuration-layer-path '()
dotspacemacs-delete-orphan-packages t
dotspacemacs-distribution 'spacemacs
dotspacemacs-configuration-layers
`((auto-completion :variables
auto-completion-return-key-behavior nil
@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 '"')
@khebbie
khebbie / simpleObjInspect.js
Created October 18, 2013 14:04
Dump all properties of an object
function simpleObjInspect(oObj, key, tabLvl)
{
key = key || "";
tabLvl = tabLvl || 1;
var tabs = "";
for(var i = 1; i < tabLvl; i++){
tabs += "\t";
}
var keyTypeStr = " (" + typeof key + ")";
if (tabLvl == 1) {