sudo nano ~/.inputrc
# Add following content
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete
# close terminal then try again
package.json
: list of module needs for projectpackage-lock.json
: same idea but with lock specific version that already works when runnpm i
frompackage.json
- Semantic Versioning (semver) has structure like: ^MAJOR.MINOR.PATCH
- With ^ when run
npm i
it will install newest version of the same MAJOR. But with the newest MINOR or PATCH (install on new pc) could cause some issue or bug - The package-lock.json solves this by defining the MAJOR.MINOR.PATCH preciously that works.
Since PHP 7.2
is not supported anymore, it's got delisted from the Hombrew core repository.
You've to find a third-party repository that still contains an older PHP version, such as the shivammathur/php
repository.
You need to tap the repository like this in your Homebrew:
brew tap shivammathur/php
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
#.ssh/config | |
Host domain.com | |
HostName [ip_addres] | |
User username | |
IdentityFile /path/to/pem/file/file.pem |
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
const data = [] | |
// using promise.all | |
const data = await Promise.all(data.map(async (item, index) => { | |
// call async function here | |
item.products = await asyncawaitfunction() | |
return item | |
})); |
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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
OlderNewer