Skip to content

Instantly share code, notes, and snippets.

View amrali's full-sized avatar
:shipit:
4570719753318195560

Amr Ali amrali

:shipit:
4570719753318195560
  • Egypt
View GitHub Profile
@amrali
amrali / hkt.cpp
Created September 17, 2018 00:14 — forked from jhaberstro/hkt.cpp
Functor, Maybe, and Higher-Kinded Types in C++
// Example program
#include <iostream>
#include <string>
#include <vector>
#include <type_traits>
//---------------------
// Maybe and MyVector, two totally unrelated classes whose only commanilty is that they are both type constructors of the same arity (e.g. 1) and order (e.g. 1).
//---------------------
template< typename T >
@amrali
amrali / YubiKey-GPG-SSH-guide.md
Created August 17, 2018 03:48 — forked from ageis/YubiKey-GPG-SSH-guide.md
Technical guide for using YubiKey series 4 for GPG and SSH

YubiKey 4 series GPG and SSH setup guide

Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.

You'll probably be working with a single smartcard, so you'll want only one primary key (1. Sign & Certify) and two associated subkeys (2. Encrypt, 3. Authenticate).