This file contains hidden or 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
## Install bash-completion on Amazon Linux | |
sudo yum install bash-completion --enablerepo=epel | |
sudo yum install git bash-completion |
This file contains hidden or 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
# maximum capability of system | |
user@ubuntu:~$ cat /proc/sys/fs/file-max | |
708444 | |
# available limit | |
user@ubuntu:~$ ulimit -n | |
1024 | |
# To increase the available limit to say 200000 | |
user@ubuntu:~$ sudo vim /etc/sysctl.conf |
This file contains hidden or 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
Show hidden characters
{ | |
"env": | |
{ | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"rules": | |
{ | |
"indent": [ |
This file contains hidden or 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
TypeError: Cannot read property 'debug' of undefined | |
at exports.reduceUI (~/.hyper_plugins/node_modules/hyper-autoprofile/index.js:175:49) | |
at r.forEach (file:///opt/Hyper/resources/app.asar/renderer/bundle.js:1:1295) | |
at Array.forEach (native) | |
at file:///opt/Hyper/resources/app.asar/renderer/bundle.js:1:1269 | |
at file:///opt/Hyper/resources/app.asar/renderer/bundle.js:4:48655 | |
at dispatch (file:///opt/Hyper/resources/app.asar/renderer/bundle.js:1:47821) | |
at file:///opt/Hyper/resources/app.asar/renderer/bundle.js:4:28453 | |
at file:///opt/Hyper/resources/app.asar/renderer/bundle.js:4:28643 | |
at file:///opt/Hyper/resources/app.asar/renderer/bundle.js:4:27789 |
This file contains hidden or 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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// Choose either "stable" for receiving highly polished, | |
// or "canary" for less polished but more frequent updates | |
updateChannel: 'stable', |
This file contains hidden or 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
{ | |
// JSHint Default Configuration File (as on JSHint website) | |
// See http://jshint.com/docs/ for more details | |
"maxerr": 50, // {int} Maximum error before stopping | |
"esnext": false, | |
// Enforcing | |
"bitwise": true, // true: Prohibit bitwise operators (&, |, ^, etc.) | |
"camelcase": false, // true: Identifiers must be in camelCase | |
"curly": true, // true: Require {} for every new block or scope |
This file contains hidden or 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 pino = require('pino'); | |
const config = require('config'); | |
const logger = pino({level: config.logLevel}); | |
exports.getLogger = function getLogger(module) { | |
return logger.child({ module: module }); | |
}; | |
exports.getMethodEndLogger = function getMethodEndLogger(logger, method, input) { |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
export const ${1:SERVER_CALL_NAME} = '${1:SERVER_CALL_NAME}'; | |
export const ${1:SERVER_CALL_NAME}_RESPONSE = '${1:SERVER_CALL_NAME}_RESPONSE'; | |
export const ${1:SERVER_CALL_NAME}_ERROR = '${1:SERVER_CALL_NAME}_ERROR'; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>async-constant</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
export function ${1:server call}Response(data) { | |
AppDispatcher.handleServerAction({ | |
actionType: constants.${2:CONSTANT_NAME}_RESPONSE, | |
data: data | |
}); | |
} | |
export function ${1:server call}Error(data) { |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
export function create${1:ModelName}Response(data) { | |
AppDispatcher.handleServerAction({ | |
actionType: constants.CREATE_${2:MODEL_NAME}_RESPONSE, | |
data: data | |
}); | |
} | |
export function create${1:ModelName}Error(data) { |
NewerOlder