Skip to content

Instantly share code, notes, and snippets.

View David7ce's full-sized avatar
👋

David7ce David7ce

👋
View GitHub Profile
@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.
#
@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 / snake-game.html
Created August 29, 2023 02:19
Snake game in JS
<!DOCTYPE html>
<html>
<head>
<style>
#g {
background: black;
margin: auto;
display: block;
}
@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 / 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 / github-dg-actions.yml
Created November 6, 2023 18:52
Deploy Digital Garden to GitHub Pages with this workflow
name: GH Pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
@David7ce
David7ce / KVM_QEMU_Virt_Manager_installation_on_Arch_Linux.md
Created November 9, 2023 14:39
KVM_QEMU_Virt_Manager_installation_on_Arch_Linux

Author: Keyitdev
Source: Keyitdev/notes
Last edited on: 9 Sep 2023

KVM, QEMU and Virt Manager installation on Arch Linux

Install packages

sudo pacman -S qemu-full virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat dmidecode

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.