Generarates inventory for ansible from etcd using python-etcd library.
The script assumes etcd.ini to be present alongside it. To choose a different path, set the ETCD_INI_PATH environment variable:
export ETCD_INI_PATH=/path/to/etcd.ini
; This is a complete solution to map the CapsLock key to Control and Escape without losing the ability to toggle CapsLock | |
; We use two tools here - any remapping software to map CapsLock to LControl and AutoHotkey to execute the following script | |
; This has been tested with MapKeyboard (by Inchwest) | |
; This will allow you to | |
; * Use CapsLock as Escape if it's the only key that is pressed and released within 300ms (this can be changed below) | |
; * Use CapsLock as LControl when used in conjunction with some other key or if it's held longer than 300ms | |
; * Toggle CapsLock by pressing LControl/CapsLock + RControl | |
~*LControl:: |
Installing on a newer PC with GFI requires a little differen't partitioning. When you open up gparted or your favorite command line partition tool, you need to do the following: | |
Create a partition scheme that is GPT. Then create the first partition as FAT32 and make it 200 mb or larger, set the flags to boot and esp. Then create your main partition and if you want, a home partition and swap partition. | |
Next step is to partition the main os partition: | |
mkfs.ext4 -L nixos /dev/sda1 | |
Mount the partition: | |
mount /dev/disk/by-label/nixos /mnt |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
# Load all init scripts | |
Get-ChildItem $Home\OneDrive\Code\PowerShellInit\* -Include *.ps1 -Recurse | % { . $_ } |
# MOVED HERE https://gist.github.com/dysinger/2a768db5b6e3b729ec898d7d4208add3 |