// 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'}),
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"js/util/dom-creator.js", | |
"js/main.js" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$#" -ne 2 ]; then | |
echo "Usage: sudo $(basename $0) /path/to/updated_vanilla_git/ /path/to/current_vanilla_installation/" | |
exit 1 | |
fi | |
new_vanilla=$1 | |
install_dir=${2:=/var/www/vanilla/} | |
tmp=/tmp | |
branch=2.1 | |
http_group=www-data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-type: application/javascript'); | |
require_once('../../lib/_autoload.php'); | |
require_once dirname(__FILE__).'/functions.jsconnect.php'; | |
$clientID = "saml-login"; | |
$secret = "TOP_SECRET!"; | |
$as = new SimpleSAML_Auth_Simple('default-sp'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SimpleTemplate | |
attr_accessor :token_start, :token_end | |
def initialize(file) | |
@content = open(file).read | |
@token_start = "{{" | |
@token_end = "}}" | |
@token_status = :on | |
end | |
def replace(token,content) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go to Settings -> Toggle click effects | |
var muchClick = function(amount){return function(){var $mine = $("#miner"); for(var i = 0; i < amount; i++){$mine.trigger("mousedown");}}}; | |
var veryTimer = setInterval(muchClick(100),150); | |
//clearInterval(veryTimer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
var makeObservable = function() { | |
var observers = []; | |
var addObserver = function(observer) { | |
observers.push(observer); | |
}; | |
var removeObserver = function(observer){ | |
var idx = observers.indexOf(observer); | |
if(idx != -1) observers.splice(idx, 1); |
NewerOlder