Skip to content

Instantly share code, notes, and snippets.

View alfeyo's full-sized avatar
💥
Just an african designers and developer in one

Alfeyo alfeyo

💥
Just an african designers and developer in one
View GitHub Profile
Syntax:
scp <source> <destination>
To copy a file from B to A while logged into B:
scp /path/to/file username@a:/path/to/destination
To copy a file from B to A while logged into A:
@alfeyo
alfeyo / generate-ssh-key.sh
Created March 12, 2020 11:19 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@alfeyo
alfeyo / path.md
Created October 24, 2019 00:49 — forked from nex3/path.md

The PATH is an important concept when working on the command line. It's a list of directories that tell your operating system where to look for programs, so that you can just write script instead of /home/me/bin/script or C:\Users\Me\bin\script. But different operating systems have different ways to add a new directory to it:

Windows

  1. The first step depends which version of Windows you're using:
  • If you're using Windows 8 or 10, press the Windows key, then search for and
@alfeyo
alfeyo / config
Created April 26, 2019 07:03
ssh one time phasess
Host *
IgnoreUnknown AddKeysToAgent,UseKeychain
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
@alfeyo
alfeyo / installing-node-with-nvm.md
Created January 22, 2019 21:04 — forked from d2s/installing-node-with-nvm.md
Installing Node.js for Linux & macOS with nvm