I hereby claim:
- I am levcuong on github.
- I am cuongkeybase (https://keybase.io/cuongkeybase) on keybase.
- I have a public key ASDNPqT20481UC7bbiwnxUcXHy1BUTfMT9kPcpa-w9U4vgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{"lastUpload":"2020-05-01T05:58:14.297Z","extensionVersion":"v3.4.3"} |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
const solution = (N) => { | |
const binary = N.toString(2); | |
let count = 0; | |
let answer = 0; | |
for(let b of binary) { | |
if (b === "0") { | |
count++ | |
} else { |
require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); }); |
openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
### STEP 1. Generate a new SSH key by the command below | |
```bash | |
ssh-keygen -t ed25519 -C "your_email@example.com" | |
``` | |
### STEP 2. Copy the SSH public key to your clipboard by the command below | |
```bash | |
# macOS | |
pbcopy < ~/.ssh/id_ed25519.pub | |
``` |
git config --list
git config --list --global
git config --list --local
git config --list --system
// check version | |
node -v || node --version | |
// list locally installed versions of node | |
nvm ls | |
// list remove available versions of node | |
nvm ls-remote | |
// install specific version of node |