Skip to content

Instantly share code, notes, and snippets.

View David7ce's full-sized avatar
👋

David7ce David7ce

👋
View GitHub Profile

Problem

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).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@David7ce
David7ce / ahorcado.cs
Created September 19, 2023 21:27 — forked from MartinAngeloni/ahorcado.cs
Simulando el juego del ahorcado en c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AhorcadoPalabras;
namespace ahorcadoString
{
@David7ce
David7ce / debinst.sh
Created September 12, 2023 16:09 — forked from jarehec/debinst.sh
#!/bin/bash
## UNLICENSE file for license information
# Misc checks
if [ $(id -u) -ne 0 ]
then
echo "This script needs root to work." # It really does. We're installing packages.
exit 1
fi
@David7ce
David7ce / remove blank lines regex.md
Created April 10, 2023 02:30 — forked from fomightez/remove blank lines regex.md
remove all blank lines using regular expressions
@David7ce
David7ce / opml2html.pl
Created January 25, 2023 00:13 — forked from lmmx/opml2html.pl
OPML to HTML bookmarks file converter, via http://jeremy.zawodny.com/blog/archives/000386.html
#!/usr/bin/perl -w
#
# opml2html.pl, (c) Jeremy Zawodny -- http://jerermy.zawodny.com/blog/
#
# Updated by Michael Radwin (http://www.radwin.org/michael/blog/)
# on Dec 26th, 2003 to include image size attributes and link
# titles.
#
# You may distribute this code freely. It's not rocket science.
#