dnf install i3
echo "exec i3" > ~/.xinitrc
| Let /dev/sdb be the disk. | |
| # Create partition | |
| sudo cfdisk /dev/sdb -> cerate partition /dev/sdb1 | |
| # Initialize disk data with random bits | |
| sudo shred --verbose --random-source=/dev/urandom --iterations=3 /dev/sdb1 | |
| # Create the cryptographic device (leave hash and iter-time to default values if the drive will be mounted on a slow device) | |
| sudo cryptsetup --verbose --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 luksFormat /dev/sdb1 | |
| # Open device | |
| sudo cryptsetup open --type luks /dev/sdb1 DEVSDB1 |
| #!/bin/bash | |
| # Check before running, may need intervention | |
| # Pass in the following to the script, or hardcode it. | |
| # Uncomment if hardcoding input. | |
| BOOT_PARTITION="/dev/sdg1" | |
| DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093" | |
| DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266" | |
| POOL="vault" |
| # arch uefi dm-crypt zfsroot install (archiso) | |
| # modified to work with current repos as of 2016-06-16 and with hints from | |
| # comments by larskotthoff | |
| # uses only one boot partition for EFI and initramfs | |
| # partition disk | |
| # start at 1MB (sector 2048) | |
| 512Mib EFI |
| class Dog | |
| attr_writer :name | |
| def initialize(name) | |
| @name = name | |
| end | |
| def bark | |
| puts "patrick" | |
| end |
| #!/bin/bash | |
| #This script is best used if modified for each person | |
| #The install can quickly completed if there is a local mirror. | |
| #on an existing arch install, run: darkhttpd /var/cache/pacman/pkg/ | |
| #then set LOCALMIRROR to point to that machine | |
| #It's okay if errors come up, pacman will resolve them. | |
| export LOCALMIRROR="Server = http://192.168.1.1:8080" | |
| export MIRRORLIST="/etc/pacman.d/mirrorlist" |
| # Simple Recommendation Engine in Ruby | |
| # Visit: http://otobrglez.opalab.com | |
| # Author: Oto Brglez <otobrglez@gmail.com> | |
| class Book < Struct.new(:title) | |
| def words | |
| @words ||= self.title.gsub(/[a-zA-Z]{3,}/).map(&:downcase).uniq.sort | |
| end |
| passwd | |
| systemctl enable sshd.service | |
| systemctl start sshd.service | |
| parted -s /dev/sda mklabel gpt | |
| parted -s /dev/sda mkpart "primary" "fat16" "50MB" "60MB" | |
| parted -s /dev/sda mkpart "primary" "ext4" "1%" "99%" | |
| parted -s /dev/sda set 1 bios_grub on | |
| mkfs.ext4 /dev/sda2 |
| require 'bindata' | |
| require 'benchmark' | |
| require 'win32/registry' | |
| require 'io/console' | |
| class GGPK | |
| class UTF16String < BinData::String | |
| def snapshot | |
| super.force_encoding('UTF-16LE') | |
| end |