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
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
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
const ENTITY_REGEX = /&#x([0-9A-F]+);/gi | |
function entityToChar(substr: string, match: string) { | |
return String.fromCharCode(parseInt(match, 16)) | |
} | |
export const HtmlEntity = { | |
decode: function (str: string) { | |
return str.replace(ENTITY_REGEX, entityToChar) | |
}, |