Skip to content

Instantly share code, notes, and snippets.

View isaac-souza's full-sized avatar

Isaac Souza isaac-souza

View GitHub Profile
@isaac-souza
isaac-souza / collections.php
Created September 4, 2023 14:30 — forked from haampie/collections.php
Collections
<?php
final class User
{
private $name;
public function __construct(string $name)
{
$this->name = $name;
}
If 2fa is enabled on github switch to ssh instead of https on linux
1. generate an ssh keypair on your linux box
ssh-keygen -t {rsa|dsa}
2. add the public key to github: profile - settings - ssh keys
3. switch from https to ssh
Check your repo remote: