$ scp username@remoteHost:/remote/dir/file.txt /local/dir/
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
gcap() { | |
git add . && git commit -m "$*" && git push | |
} | |
# NEW. | |
gnew() { | |
gcap "📦 NEW: $@" | |
} | |
# IMPROVE. |
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 a = item => new Promise(resolve => setTimeout(() => resolve(item), 10)) | |
const b = item => new Promise(resolve => setTimeout(() => resolve(item), 100)) | |
const c = item => new Promise(resolve => setTimeout(() => resolve(item), 200)) | |
// Parallel | |
const parallel = async () => { | |
const processes = [a(), b(), c()] | |
const [output1, output2, output3] = await Promise.all(processes) | |
return `parallel is done: ${output1} ${output2} ${output3}` |
Historically, in order to host website for a company they usually contact server/hardware providers to setup a sever farm. But this way had some serious down sides
- Managing hardwares was pain in the a**.
- Security risk, if we had another service to run in our server there was no any isolation, every service had access to do any thing with
By default React is a JavaScript library for building user interfaces
In React, for routing we have to use third party libraries for handling various features like for routing we might use react-router-dom.
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": "material-icon-theme", | |
"files.autoSaveDelay": 5000, | |
"editor.wordWrap": "off", | |
// "editor.fontFamily": "'SF Mono','Fira Code','Operator Mono','Monolisa','Cascadia Code','JetBrains Mono', 'monospace', 'Droid Sans Fallback','Segoe Ui Emoji','Noto Color Emoji'", | |
"workbench.colorCustomizations": { | |
// "editorGutter.addedBackground": "#141A1F", | |
// "editorGutter.modifiedBackground": "#141A1F", | |
// "editorGutter.background": "#141A1F" |