sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
# Set the maximum number of open file descriptors
ulimit -n 20000000
# Set the memory size for TCP with minimum, default and maximum thresholds
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
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
| a n. 字母A;第一流的;学业成绩达最高标准的评价符号 abbr. [物]安(ampere) | |
| abandon n. 放任;狂热 vt. 遗弃;放弃 | |
| abbreviation n. 缩写;缩写词 | |
| ability n. 能力,能耐;才能 | |
| able adj. 能;[经管] 有能力的;能干的 n. (Able)人名;(伊朗)阿布勒;(英)埃布尔 | |
| abnormal adj. 反常的,不规则的;变态的 | |
| aboard prep. 在…上 adv. 在飞机上;[船] 在船上;在火车上 | |
| abolish vt. 废除,废止;取消,革除 | |
| abortion n. 流产,堕胎,小产;流产的胎儿;(计划等)失败,夭折 | |
| about prep. 关于;大约 n. 大致;粗枝大叶;不拘小节的人 adj. 在附近的;四处走动的;在起作用的 adv. 大约;周围;到处 n. (About)人名;(法)阿布 |
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
| { | |
| "workbench.iconTheme": "vs-minimal", | |
| "workbench.colorTheme": "Monokai", | |
| "files.trimTrailingWhitespace": true, | |
| "editor.multiCursorModifier": "ctrlCmd", | |
| "editor.formatOnPaste": true, | |
| "eslint.autoFixOnSave": true, | |
| "search.exclude": { | |
| "node_modules": true, | |
| "coverage": true, |
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
| import pyautogui | |
| def find(): | |
| for i in range(10): | |
| pyautogui.moveTo(300, 300, duration=0.25) | |
| pyautogui.moveTo(400, 300, duration=0.25) | |
| pyautogui.moveTo(400, 400, duration=0.25) | |
| pyautogui.moveTo(300, 400, duration=0.25) | |
| find() |
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
| // 成绩等级分为A、B和C三级 | |
| function getGrade(score) { | |
| return score < 60 ? 'C' : | |
| score < 80 ? 'B' : 'A'; | |
| }; | |
| // 学生及其成绩 | |
| let students = [ | |
| { name: '张三', score: 84 }, | |
| { name: '李四', score: 58 }, | |
| { name: '王五', score: 99 }, |
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
| transform: { | |
| sfjjr: 'stockbroker', | |
| czdh: 'type' | |
| } | |
| const transform = (res) => { | |
| if (_.isArray(res)) { | |
| res.map(row => transform(row)); | |
| } | |
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
| 1 | |
| var str = 'bdca' | |
| console.log(str.split(‘’).sort().join(‘’)) | |
| 2 | |
| var index, res = [] | |
| var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] | |
| var num = Math.floor(Math.random() * arr.length) | |
| for(var i=num;i>=0;i--){ |
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
| var assert = require('assert') | |
| function Node(){ | |
| this.parent | |
| this.data | |
| this.next | |
| this.index | |
| } | |
| function sort(a, index, p){ |