Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View vermotr's full-sized avatar

Romain Vermot vermotr

View GitHub Profile
@vermotr
vermotr / arch-linux-post-installation.md
Last active July 31, 2022 21:34 — forked from kmikko/2_Arch_post-install.md
Arch Linux post-installation

Arch Linux post-installation

Install GNOME and GDM

sudo pacman -S gnome gdm
sudo systemctl enable gdm
reboot

Set keyboard layout (for GDM)

@vermotr
vermotr / arch-linux-installation.md
Last active July 31, 2022 20:43 — forked from chrisleekr/install-arch-linux-lvm-luks-dell-xps-15-7590.md
Install Arch Linux with Full Disk Encryption (LVM on LUKS)

Keybase proof

I hereby claim:

  • I am vermotr on github.
  • I am vermotr (https://keybase.io/vermotr) on keybase.
  • I have a public key ASBCQoIVbPQUou9DUdbgADMuARFET9Lbmny3NKAaM6EABgo

To claim this, I am signing this object:

@vermotr
vermotr / underscore.go
Last active November 25, 2021 08:32 — forked from regeda/underscore.go
Convert CamelCase to underscore in golang
package main
import (
"fmt"
"regexp"
"strings"
)
var camel = regexp.MustCompile("(^[^A-Z0-9]*|[A-Z0-9]*)([A-Z0-9][^A-Z]+|$)")
@vermotr
vermotr / Docker-Registry.md
Created February 7, 2017 15:56
Docker Registry with Basic Auth Nginx Server and Let's Encrypt certificate

Docker Registry

A simple Docker Registry with Basic Auth Nginx Server and Let's Encrypt certificate

How to use

You have to create a .htpasswd file and you can use the following command:

htpasswd -c registry.htpasswd username

License

@vermotr
vermotr / upgrade.sh
Created April 28, 2016 11:24
Bash script to upgrade docker container after its image changed
#!/usr/bin/env bash
if [ $# -lt 1 ];then
echo Usage: `basename $0` image 1>&2
exit 1
fi
set -e
IMAGE=$1
CID=$(docker ps | grep $IMAGE | awk '{print $1}')