Skip to content

Instantly share code, notes, and snippets.

@bogen85
bogen85 / gist:6e7eb5aa4455ad96b25f19998094601f
Created June 26, 2022 12:16
xstart (display/desktop manager replacement)
#!/bin/bash
# ~/bin/xstart.sh
#
# alias xstart='[ -z "${DISPLAY}" ] && exec ${HOME}/bin/xstart.sh'
#
# now that X starts on the same virtual console the user is logged in,
# it is not a security risk
#
# when X always started on virtual console 7, then someone else could
@bogen85
bogen85 / bootstrap-alma9.sh
Last active May 26, 2022 05:16
bootstrap almalinux 9 into a directory
#!/bin/bash
set -euo pipefail
arch=x86_64
base_packages=https://repo.almalinux.org/almalinux/9.0/BaseOS/$arch/os/Packages
alma9key=RPM-GPG-KEY-AlmaLinux-9
workdir=$(pwd)
$ ./Example58
d/m/y
30-5-21 00:18:36 : 30-5-21 00:18:36
05-05-1752 15:50 : 5-5-52 15:50:00
05-05-1999 15:50 : 5-5-99 15:50:00
5-5 13:30 : 5-5-21 13:30:00
5 1:30PM : 5-5-21 13:30:00
d/m/y
Number of days between 1-9-52 15:00:00 and 16-9-52 15:00:00 : 15