Skip to content

Instantly share code, notes, and snippets.

View fcgdam's full-sized avatar

FcgDam fcgdam

  • Lisbon, Portugal
View GitHub Profile
@fcgdam
fcgdam / PostgresMiddleware.js
Created August 13, 2019 13:00
Node.js Postgres Redis query caching with variable expiration
/**
* PostgresMiddleware.js
*
* Handles postgres queries and caching to redis
* see README for usage
*
*/
var pg = require('pg'),
crypto = require('crypto'),
@fcgdam
fcgdam / arch_installation.md
Last active November 24, 2018 19:20 — forked from alexBeuth/arch_installation.md
Arch Linux installation

WARNING: WORK IN PROGRESS, USE THESE STEPS WITH CAUTION. IT WILL CLEAR ALL DISK DATA!!

I recommend first to use a Virtual Box machine with EFI support enabled to test everything before doing it on a real machine.

Arch installation on a HP ENVY 13 inch laptop (ah0006np part number: 16GB Ram, 512GB SSD)

OBJECTIVE: Install Arch Linux with encrypted boot, root and swap filesystems and boot from UEFI, completly dumping Windows on the process. No dual boot. Windows, if necessary will be run on a Virtual Machine and re-use the Windows key that came with the laptop.

The configuration will be LVM on LUKS. Also a major difference from other tutorials is that the boot partition is also encrypted, and not a standard partition.