Skip to content

Instantly share code, notes, and snippets.

View esiqveland's full-sized avatar

Eivind Siqveland Larsen esiqveland

View GitHub Profile

Keybase proof

I hereby claim:

  • I am esiqveland on github.
  • I am esiqveland (https://keybase.io/esiqveland) on keybase.
  • I have a public key ASDBl4bgZrSl6OBahtc7LtjuP0UECwN1d2XPp_ecXQE1qgo

To claim this, I am signing this object:

$ curl -v https://reisapi.ruter.no/StopVisit/GetDepartures/3011400
* Trying 188.95.245.89...
* Connected to reisapi.ruter.no (188.95.245.89) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
@esiqveland
esiqveland / PKGBUILD
Last active September 20, 2015 21:09
slack-chat aur PKGBUILD
# Maintainer: Simon Gomizelj <simongmzlj@gmail.com>
# Contributor: Kyle Manna <kyle(at)kylemanna(dot)com>
pkgname=slack-chat
pkgver=1.2.1
pkgrel=1
pkgdesc="Slack Chat (Beta) for Linux"
arch=('i686' 'x86_64')
url="https://slack.com"
license=('custom')
From ee32bf843b1c50bfcb5563a8c87b1d7f440e6c45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com>
Date: Fri, 27 Feb 2015 12:25:39 +0100
Subject: [PATCH 7/7] wined3d: Reorder shader constants.
Reply-To: wine-devel <wine-devel@winehq.org>
This attempts to fix bug 34052 without requiring a range check for every
indirect constant read. GL_ARB_robust_buffer_access_behavior would be an
OpenGL extension to reliably give us what we need, but I haven't tested
its performance impact yet.
@esiqveland
esiqveland / .Xmodmap
Last active August 29, 2015 14:25
Remaps to mac-like keyboard in linux. Gives super+a'; --> æøå and maps Alt key to Super. Aka Norwegian like support in linux with US keyboard
keycode 8 =
keycode 9 = Escape NoSymbol Escape NoSymbol Escape
keycode 10 = 1 exclam 1 exclam exclamdown U2044 1 exclam
keycode 11 = 2 at 2 at trademark EuroSign 2 at
keycode 12 = 3 numbersign 3 numbersign sterling U2039 3 numbersign
keycode 13 = 4 dollar 4 dollar cent U203A 4 dollar
keycode 14 = 5 percent 5 percent infinity UFB01 5 percent
keycode 15 = 6 asciicircum 6 asciicircum section UFB02 6 asciicircum
keycode 16 = 7 ampersand 7 ampersand paragraph doubledagger 7 ampersand
keycode 17 = 8 asterisk 8 asterisk enfilledcircbullet degree 8 asterisk
import hashlib
import sys
import base64
def compute(password):
m = hashlib.sha1()
m.update(password)
digest = m.digest()
@esiqveland
esiqveland / throughputplotter.R
Created May 22, 2014 21:38
The plot of our node throughput graphs
args<-commandArgs(TRUE)
library('getopt')
spec <- matrix(c(
'zkdata' , 'z', 1, "character", "zookeeper and official data input file csv (required)",
'output' , 'o', 1, "character", "output filename (required)",
'help' , 'h', 0, "logical", "this help"
),ncol=5,byrow=T)
@esiqveland
esiqveland / responseplot.R
Last active August 29, 2015 14:00
Plotting cumulative distribution of response times
# plotter.R
mydata = read.csv("summaryzookeeper.csv")
mydatanozk = read.csv("summarynozk.csv")
nozk <- unlist(apply(mydatanozk, 1, function(x) rep(x[1], x[2])))
zookeeperdata <- unlist(apply(mydata, 1, function(x) rep(x[1], x[2])))