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:
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) |
<?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'); |
#!/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 |
[ | |
"js/util/dom-creator.js", | |
"js/main.js" | |
] |
I hereby claim:
To claim this, I am signing this object:
# 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 |
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 |
One would suspect that the following markdown code would yield first an un-ordered list followed by an ordered list.
require "open-uri" | |
require "zip/zip" | |
img_url = "http://jquery.com/demo/thickbox/images/plant4.jpg" | |
img_name = "plant4.jpg" | |
#this works in 1.8.7, but not in 1.9.2: | |
Zip::ZipFile.open("test.zip", Zip::ZipFile::CREATE) do |zipfile| | |
img = open(img_url) | |
zipfile.add(img_name, img.path) |