I hereby claim:
- I am robmcalister on github.
- I am robmcalister (https://keybase.io/robmcalister) on keybase.
- I have a public key ASA8JzF82oqSEkbwE09bSf317TwbRPPX5oUFTv50nTZVWAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
body { | |
margin: 20px; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
input { | |
border: 1px solid #888; | |
font-size: 1.2rem; | |
padding: 0.5rem; | |
} |
var crypto = require("crypto"); | |
/** | |
* Get the signature/digest of a supplied input string | |
* @param data [Required] The String to encode | |
* @param awsSecretKey [Required] Secret key shared with Amazon | |
* @param algorithm [Optional] Encryption algorithm, defaults to sha256 | |
* @param encoding [Optional] The output encoding. Default to base64 | |
* @returns Str with encoded digest of the input string | |
*/ | |
function generateHmac (data, awsSecretKey, algorithm, encoding) { |
var crypto = require('crypto'); | |
var SHARED_SECRET = "sup3rs3cr3t!!"; | |
function signString(string_to_sign, shared_secret) { | |
var hmac = crypto.createHmac('sha512', shared_secret); | |
hmac.write(string_to_sign); | |
hmac.end() | |
return hmac.read(); | |
} |
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8080; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), uri); |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
overflow: hidden; | |
overflow-y: scroll; /* has to be scroll, not auto */ | |
-webkit-overflow-scrolling: touch; |
<!-- Page: composition --> | |
<!-- This page acts as the template. Create it first, then the page below. --> | |
<apex:page> | |
<apex:outputText value="(template) This is before the header"/><br/> | |
<apex:insert name="header"/><br/> | |
<apex:outputText value="(template) This is between the header and body"/><br/> | |
<apex:insert name="body"/> </apex:page> | |
<!-- Page: page --> | |
<apex:page> |