Skip to content

Instantly share code, notes, and snippets.

@mkrogh
mkrogh / modules.json
Created January 9, 2015 14:03
A simple js include
[
"js/util/dom-creator.js",
"js/main.js"
]

Keybase proof

I hereby claim:

  • I am mkrogh on github.
  • I am mkrogh (https://keybase.io/mkrogh) on keybase.
  • I have a public key whose fingerprint is 9C3F 46F4 FEC5 8097 D8CC 65E9 981B 1E5E B208 0BDC

To claim this, I am signing this object:

@mkrogh
mkrogh / aliases
Created June 10, 2015 12:59
A collection of useful bash aliases.
# git
alias gits='git status -uno' #don't show untracked files
# OpenSSL
function ssltest() {
local SN=${2:-1}
echo QUIT | openssl s_client -showcerts -connect $1:443 -servername $SN | grep -A 1 "s:/"
}
alias ssltest=ssltest

NORDUnet NI 2.0 router hardware model

// Create nodes
CREATE (router1:Physical:Router{name:'Router1', serial_number:'1'}),
       (midplane:Physical:Module{name:'Midplane', model_number:'CHAS-1'}),
       (fpmDisplay:Physical:Module{name:'FPM Display', model_number:'CRAFT-MX80-S'}),
from chinchilla import *
import time
GREEN = "\x1b[32m"
RED = "\x1b[31m"
ORANGE = "\x1b[33m"
RESET = "\x1b[0m"
success,error = 0,0
def check_link(txt,content):
global success, error