Markdown is written in plain text but generates HTML. Links and formatting can be placed inline, as can code blocks
.
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
static OSStatus | |
SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams, | |
uint8_t *signature, UInt16 signatureLen) | |
{ | |
OSStatus err; | |
... | |
if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0) | |
goto fail; | |
if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0) |
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
// download: download the url to string | |
utl.download = function(url, cb){ | |
var options = require('url').parse(url), | |
httpx = url.startsWith(url, 'https:') ? https : http, | |
data = "", | |
req = httpx.request(options, function(res){ | |
res.setEncoding("utf8") | |
res.on("data", function(chunk){ | |
return data += chunk; | |
}) |
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
# Create gh-pages branch | |
git checkout --orphan gh-pages | |
# Remove all files from the old working tree | |
git clean -fdx | |
# Create initial index.html file | |
echo "My github page" > index.html | |
# Turn off jekyll |
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
function terminal_open { | |
osascript -e 'tell application "Terminal" to activate' \ | |
-e 'tell application "System Events"' \ | |
-e 'tell process "Terminal"' \ | |
-e "tell menu item \"${1}\" of menu \"New ${2}\" of menu item \"New ${2}\" of menu \"Shell\" of menu bar item \"Shell\" of menu bar 1" \ | |
-e 'click' \ | |
-e 'end tell' \ | |
-e 'end tell' \ | |
-e 'end tell' > /dev/null | |
} |