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
{ | |
"Arrow Function": { | |
"prefix": "af", | |
"body": ["(${1}) => ${2:{${0}\\}}"], | |
"description": "Creates a ES6 arrow function." | |
}, | |
"Anonymous Function": { | |
"prefix": "fun", | |
"body": ["function(${1}) {\n\t${0}\n}"], | |
"description": "Creates an anonymous function." |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"terminal.integrated.shellArgs.osx": [ | |
"-l" | |
], | |
"workbench.iconTheme": "eq-material-theme-icons", | |
"workbench.colorTheme": "Material Theme High Contrast", | |
"editor.minimap.enabled": true, | |
"editor.rulers": [ | |
75, |
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
{ | |
"semi": false, | |
"useTabs": true, | |
"singleQuote": true, | |
"trailingComma": "es5" | |
} |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "ctrl+shift+\\", | |
"command": "editor.action.selectToBracket" | |
}, | |
{ | |
"key": "ctrl+\\", | |
"command": "editor.action.jumpToBracket", | |
"when": "editorTextFocus" |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlueColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS | |
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO | |
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAcMC41MDk4MDM5MjE2IDAuNjY2NjY2NjY2 | |
NyAxABACgALSFBUWF1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiFhhYTlNPYmpl |
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 | |
NAME=$1 | |
DIR=$PWD | |
if [ ! -d "$DIR/$NAME" ]; then | |
mkdir "$NAME" | |
fi | |
if [ ! -d "$DIR/repos" ]; then |
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 | |
PRIVATE_KEY="ECDSA" | |
PUBLIC_KEY="ECDSA.pub" | |
BITCOIN_PRIVATE_KEY="bitcoin" | |
BITCOIN_PUBLIC_KEY="bitcoin.pub" | |
echo "Generating private key" | |
openssl ecparam -genkey -name secp256k1 -rand /dev/random -out $PRIVATE_KEY |
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
# Red Colored | |
PS1="\e[0;31m\W ϟ\] \e[m" | |
# Red Background | |
PS1="\[\033[41m\033[30m\] \u \[\033[49m\033[31m \033[41m\033[30m\] \w \[\033[49m\033[31m\] ϟ \[$(tput sgr0)\]" | |
# Blue Background | |
PS1="\[\033[46m\033[30m\] \u \[\033[49m\033[36m \033[46m\033[30m\] \w \[\033[49m\033[36m\] ϟ \[$(tput sgr0)\]" |
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 servers = { | |
'example.com': { port: 5000, key: fs.readFileSync('/path/to/key', 'utf8'), cert: fs.readFileSync('/path/to/cert', 'utf8') }, | |
'example.net': { port: 6000, key: fs.readFileSync('/path/to/key2', 'utf8'), cert: fs.readFileSync('/path/to/cert2', 'utf8') } | |
} | |
function sni_check(servername) { | |
if (~Object.keys(servers).indexOf(servername)) { | |
return crypto.createCredentials(servers[servername]).context; | |
} | |
} |
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 extend(obj, extend){ | |
var p; | |
for (p in extend) { | |
obj[p] = extend[p]; | |
} | |
return obj; | |
} | |
var obj = { | |
a : 1 |
NewerOlder