Skip to content

Instantly share code, notes, and snippets.

View chrisBosse's full-sized avatar

Chris Bosse AC1EO chrisBosse

  • Hillsborough County, NH, USA
  • 13:58 (UTC -05:00)
View GitHub Profile
@chrisBosse
chrisBosse / docker_svn-server.md
Created October 7, 2019 20:00 — forked from dpmex4527/docker_svn-server.md
Set up SVN server on docker
@chrisBosse
chrisBosse / .crypt-fix.md
Created June 12, 2019 12:51 — forked from dragon788/.crypt-fix.md
Repair "ubuntu--vg-root" not found with LUKS and LVM encryption

Crypt-fix

Use this script via curl -L -O https://gist.github.com/dragon788/e777ba64d373210e4f6306ad40ee0e80/raw/a86f3d05fb56feb6ef01fc2d61a4feb2fd82b281/crypt-fix.sh and sudo bash ./crypt-fix.sh. You may need to edit the DEVICE variable to reflect your disk and partition layout (this was created on an EFI system using LUKS and LVM). It will prompt you for your disk password once to mount and discover the correct name for the encrypted volume mount and then prompt again to mount with the correct name so that the update-initramfs command succeeds with the appropriate mapping, if this wasn't done you would get a warning and your next boot would still fail.

@chrisBosse
chrisBosse / gist:a1023a49130b55f84454190b7b6ee377
Created January 3, 2019 20:27 — forked from jpetitcolas/gist:5967887
Encode/decode a base64 encoded string in PostGreSQL
-- Decoding
SELECT CONVERT_FROM(DECODE(field, 'BASE64'), 'UTF-8') FROM table;
-- Encoding
SELECT ENCODE(CONVERT_TO(field, 'UTF-8'), 'base64') FROM table;