Skip to content

Instantly share code, notes, and snippets.

View CertificateGeneration.sh
###
#Step 1 - Generate server certificates etc... (most of this code is horribly ripped off from nodejs docs currently -> http://nodejs.org/docs/latest/api/tls.html)
###
#Assuming your starting from a clean directory
mkdir server
cd server
#generate private key
@weisjohn
weisjohn / twss.coffee
Last active Dec 17, 2015 — forked from mutewinter/twss.coffee
That's what see said hubot script.
View twss.coffee
# Description:
# Use Skynet to determine if a thing that was said is actually something
# S.H.E (Silicon Helix Entity) said.
#
# Dependencies:
# "twss": "0.1.6"
#
# Commands:
# Just say something like, "that was hard". Hubot will do the rest.
#
@weisjohn
weisjohn / gist:2962071
Created Jun 20, 2012 — forked from mattg/gist:1943615
Page for displaying device orientation
View gist:2962071
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>Orientation Test</title>
<style>
body { text-align: center; }
@media all and (orientation:portrait) {
body { font-size: 35em; margin-top: .3em; }
}
View normalized.html
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
You can’t perform that action at this time.