Skip to content

Instantly share code, notes, and snippets.

View frebib's full-sized avatar

Joe Groocock frebib

View GitHub Profile
@frebib
frebib / hibereboot
Last active March 11, 2024 06:10
hibereboot: A 'hibernate & reboot' one-shot hack script for systemd-based hosts
#!/bin/sh
set -e
# hibereboot: A 'hibernate & reboot' one-shot hack script for systemd-based hosts
#
# Place this script somewhere in your $PATH and run it (as root) to hibernate and reboot.
# For full automation, allow the script to be run with passwordless-sudo:
#
# > /etc/sudoers
# yourusername ALL=(ALL) SETENV:NOPASSWD: /path/to/hibereboot
@frebib
frebib / systemd-in-docker.yml
Last active June 11, 2017 11:58
An example of running systemd in docker, using archlinux. This example has no reliance on --privileged
version: "3.1"
services:
systemd-test:
image: finalduty/archlinux
restart: always
entrypoint: /lib/systemd/systemd
environment:
- container=docker
tmpfs:

Keybase proof

I hereby claim:

  • I am frebib on github.
  • I am frebib (https://keybase.io/frebib) on keybase.
  • I have a public key ASBqORK6I2rqEB6ZwEPaJpqjtb7ohGIWLtFmVGiQ4QqCpgo

To claim this, I am signing this object: