pvdisplay -Cv
lvdisplay -Cv
lvresize --size +5G /dev/mapper/vg0-work
resize2fs /dev/mapper/vg0-work
e2fsck -f /dev/mapper/vg0-work
resize2fs /dev/mapper/vg0-work
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
cryptsetup -y luksFormat --type luks2 /dev/sda2
cryptsetup open /dev/sda2 cryptlvm
HOOKS=(base udev autodetect keyboard keymap modconf block encrypt lvm2 filesystems fsck)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI. | |
# Note this encrypted installation method, while perfectly correct and highly secure, CANNOT support encrypted /boot and | |
# also CANNOT be subsequently converted to support an encrypted /boot!!! A CLEAN INSTALL will be required! | |
# Therefore, if you want to have an encrypted /boot or will want an encrypted /boot system at some point in the future, | |
# please ONLY follow my encrypted /boot installation guide, which lives here: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
# Set swedish keymap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** | |
*/ | |
const genRouter = function(gen){ | |
this.gen = gen | |
this.value = null | |
} | |
genRouter.prototype.run = function(){ | |
this.next() | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import requests | |
import sys | |
# .. | |
from bs4 import BeautifulSoup | |
# ... | |
from flask import Flask, request | |
from werkzeug.routing import BaseConverter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
src="./$1/src/" | |
fix="./$1/fix/" | |
a=`ls $src|sort -V` | |
i=0 | |
for fullfile in $a; do | |
filename=$(basename "$fullfile") | |
extension="${filename##*.}" | |
# ... |