Skip to content

Instantly share code, notes, and snippets.

View remvee's full-sized avatar

Remco van 't Veer remvee

  • 52°N, 5°E
View GitHub Profile
@remvee
remvee / arch-linux-install
Last active April 6, 2020 13:02 — forked from binaerbaum/arch-linux-install
Minimal instructions for installing arch linux on an UEFI NVMe system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...
@remvee
remvee / code.clj
Created December 12, 2018 19:33 — forked from skuro/forkme.md
Advent of Clojure solutions
(ns adv.code)
(defn lookup-seq [x i]
(lazy-seq (cons x (lookup-seq (+ i x) (inc i)))))
(defn lookup [x y]
(let [start (nth (lookup-seq 1 1) (dec y))]
(nth (lookup-seq start (inc y)) (dec x))))
(defn val-seq [v]
@remvee
remvee / Description.md
Created July 31, 2017 14:39 — forked from juanje/Description.md
Limit Chrome from eating all the memory and CPU

I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.

As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:

group browsers {
    cpu {
#       Set the relative share of CPU resources equal to 25%
        cpu.shares = "256";
 }