随笔分类 -  Tools

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要:Shortcut For example we have a long command: curl -i http://example.com Ctrl + a Move to the beginning of the line Ctrl + e Move to the end of the lin 阅读全文
posted @ 2021-02-11 20:11 Zhentiw 阅读(79) 评论(0) 推荐(0) 编辑
摘要:!! & !& History expansions let you interact with bash's history. For example, if you forgot to run a command with sudo, you can sudo !! to rerun the l 阅读全文
posted @ 2021-02-11 20:02 Zhentiw 阅读(421) 评论(0) 推荐(0) 编辑
摘要:Copy Brace expansions are commonly used with the cp or mv commands in order to dynamically generate strings. In this lesson, we'll use a brace expansi 阅读全文
posted @ 2021-02-11 19:56 Zhentiw 阅读(80) 评论(0) 推荐(0) 编辑
摘要:$PATH PATH is a global environment variable that represents a list of directories bash looks in for executable files. The executable files for bash co 阅读全文
posted @ 2021-02-11 15:25 Zhentiw 阅读(99) 评论(0) 推荐(0) 编辑
摘要:Pipes (|) are one of the most powerful features in bash and allow you to efficiently chain commands together and send data through it. We'll also look 阅读全文
posted @ 2021-02-09 03:09 Zhentiw 阅读(41) 评论(0) 推荐(0) 编辑
摘要:Knowing how conditionals work in bash open up a world of scripting possibilities. We’ll learn the basic syntax, including if, else, and elif. Then we' 阅读全文
posted @ 2021-02-09 03:04 Zhentiw 阅读(44) 评论(0) 推荐(0) 编辑
摘要:Every command in bash returns an exit status, which is an integer between 0 and 255 that represents whether the command succeeded or failed, and if it 阅读全文
posted @ 2021-02-08 21:39 Zhentiw 阅读(52) 评论(0) 推荐(0) 编辑
摘要:Chmod ## Create a file vim script.sh ## output some content echo "Hello World" ## Run the script ./script.sh It ouput permission denied: ./script.sh. 阅读全文
posted @ 2021-02-08 21:23 Zhentiw 阅读(109) 评论(0) 推荐(0) 编辑
摘要:Create a script See Chmod.md, how to create a sh file and modify premisson to exec mode. Parameters Paramters are referred by $1, $2.... For example: 阅读全文
posted @ 2021-02-08 21:22 Zhentiw 阅读(69) 评论(0) 推荐(0) 编辑
摘要:Open folder When you want to open a folder in Finder, for example your current folder: open . open .git ## you can open the hidden folder Create folde 阅读全文
posted @ 2021-02-08 20:51 Zhentiw 阅读(76) 评论(0) 推荐(0) 编辑
摘要:Viewing file Viewing the whole file: cat package.json Viewing the whole file with line number cat -n package.json Viewing the file with pagination les 阅读全文
posted @ 2021-02-08 16:47 Zhentiw 阅读(64) 评论(0) 推荐(0) 编辑
摘要:Nx Create a new empty Nx workspace npx create-nx-workspace <workspace name> Choose Empty workspace Nx Cloud Nx CLI Useful Commands yarn nx list Shows 阅读全文
posted @ 2021-01-21 23:17 Zhentiw 阅读(305) 评论(0) 推荐(0) 编辑
摘要:require.context: https://webpack.js.org/guides/dependency-management/#requirecontext require.context(directory, useSubdirectories = true, regExp = /^\ 阅读全文
posted @ 2020-12-26 18:14 Zhentiw 阅读(162) 评论(0) 推荐(0) 编辑
摘要:Dendron is a Visual Studio Code extension that you can download and install free of charge. To download a visual studio code extension, we press Comma 阅读全文
posted @ 2020-12-08 03:37 Zhentiw 阅读(162) 评论(0) 推荐(0) 编辑
摘要:Opening large JSON files inside of your IDE or text editor can be a pain at times, with this command line tool you can drill down into large JSON file 阅读全文
posted @ 2020-11-26 03:23 Zhentiw 阅读(63) 评论(0) 推荐(0) 编辑
摘要:While using async/await, seeing such error: Uncaught ReferenceError: regeneratorRuntime is not defined Solution: in package.json, add: "browserslist": 阅读全文
posted @ 2020-11-26 03:00 Zhentiw 阅读(146) 评论(0) 推荐(0) 编辑
摘要:https://github.com/mike-north/professional-ts/blob/master/notes/04-mikes-ts-setup.md#api-surface-report--docs Install: yarn add -D @microsoft/api-extr 阅读全文
posted @ 2020-11-23 03:30 Zhentiw 阅读(525) 评论(0) 推荐(0) 编辑
摘要:Using Volta: volta pin node yarn In add into package.json: "volta": { "node": "14.15.1", "yarn": "1.22.10" } 阅读全文
posted @ 2020-11-20 04:11 Zhentiw 阅读(60) 评论(0) 推荐(0) 编辑
摘要:As simple as: npx gitignore node 阅读全文
posted @ 2020-11-20 04:03 Zhentiw 阅读(112) 评论(0) 推荐(0) 编辑
摘要:Volta’s job is to manage your JavaScript command-line tools, such as node, npm, yarn, or executables shipped as part of JavaScript packages. Similar t 阅读全文
posted @ 2020-11-14 18:00 Zhentiw 阅读(108) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
点击右上角即可分享
微信分享提示