This file contains 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
var prettyTweetDate = function (tweetDateFromJSON) { | |
var createDate = Date.parse(tweetDateFromJSON), | |
tweetDate = new Date(createDate), | |
tweetDateNum = tweetDate.getDate(), | |
tweetHours = tweetDate.getHours(), | |
tweetAMPM = (tweetHours < 12) ? "AM" : "PM", | |
tweetDateSuffix = "", | |
prettyTweetDateString = "", | |
months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; |
This file contains 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/sh | |
PF=`ruby -rsecurerandom -e 'puts SecureRandom.base64(40).gsub(/\W/, "")[0,24]'` | |
echo $PF > $1.pf | |
openssl genrsa -des3 -passout pass:$PF -out $1.key 2048 | |
openssl rsa -in $1.key -out $1.pem -passin pass:$PF |
NewerOlder