Skip to content

Instantly share code, notes, and snippets.

View nilsmeyer's full-sized avatar

Nils Meyer nilsmeyer

  • Redundantia UG
  • Offenburg, BW, Germany
View GitHub Profile

psqlrc:

  • some infos at initial connect
  • predefined queries in ~/.psqlrc-include/ compiled by the _update.sh script into ~/.psqlrc-commands.sql which will be included within .psqlrc

image

typical worksetup:

  • portforwarding from remote to local host via ssh user@host -L 5432:127.0.0.1:5432
@CzBiX
CzBiX / thin-provisioning-tools.sh
Last active March 23, 2024 12:53
initramfs hook to add modules/files for LVM thin/cache LV into initrd.
#!/bin/sh
# see: https://bugzilla.redhat.com/show_bug.cgi?id=921235
# http://forums.debian.net/viewtopic.php?f=5&t=119644
PREREQ="lvm2"
prereqs()
{
echo "$PREREQ"
}
@gusennan
gusennan / crypt_unlock.sh
Created March 7, 2015 17:57
initramfs-hook for unlocking LUKS-encrypted LVM partition
#!/bin/sh
PREREQ="dropbear"
prereqs() {
echo "$PREREQ"
}
case "$1" in
prereqs)