Skip to content

Instantly share code, notes, and snippets.

View jerrymannel's full-sized avatar
🍺
Cheers!

Jerry M. jerrymannel

🍺
Cheers!
View GitHub Profile
@jerrymannel
jerrymannel / git.md
Last active February 26, 2018 07:05
Git init and tagging after cloning an empty repository
touch README.md
git add .
git commit -m "Init"
git push
git branch dev
git checkout dev
git merge master
git push --set-upstream origin dev
@jerrymannel
jerrymannel / opensslKeyCert.md
Last active November 4, 2017 13:43
Generating Key-Cert pair using OpenSSL
@jerrymannel
jerrymannel / rand.js
Last active January 16, 2018 08:21
Generate random number of given lentth
function (_i) {
var i = Math.pow(10, _i - 1);
var j = Math.pow(10, _i) - 1;
return ((Math.floor(Math.random() * (j - i + 1)) + i));
};