Skip to content

Instantly share code, notes, and snippets.

View robertbeal's full-sized avatar

Robert Beal robertbeal

View GitHub Profile
@robertbeal
robertbeal / yet_another_motion_automation.yaml
Last active December 16, 2022 01:18 — forked from networkingcat/yet_another_motion_automation.yaml
Homeassistant blueprint for motion-activated light scene
blueprint:
name: Yet Another Motion Automation Beta
description: >
# YAMA V10
Turn on lights or scenes when motion is detected.
Four different scenes can be defined depending on time of day.
### Keybase proof
I hereby claim:
* I am robertbeal on github.
* I am bealer (https://keybase.io/bealer) on keybase.
* I have a public key ASBpibcpVmh3GPqf5Iw6Iv6b9sc4iXTXcVc1DcS7GY52wwo
To claim this, I am signing this object:
@robertbeal
robertbeal / gitlab-backup.sh
Created September 11, 2018 08:04
GitLab bash backup script
#!/bin/bash
# summary:
# backup script that keeps the last 14 (16-2) days worth of gitlab backups
# usage:
# backup.sh {backup-folder-path} {gitlab-access-token}
# backup.sh /mnt/backups AF56VBJJ660PF
cd "$1" || exit
@robertbeal
robertbeal / install.sh
Last active January 4, 2018 14:30
arch-base-install
#!/bin/bash
# Command for setting up a fully disk encrypted (including /boot) install with EFI partition with crypto_keyfile.bin (so the passphrase only needs to be entered once)
# Not yet automated, I still need to 'sed' some of the comment entries.
USER=foo
HOSTNAME=foo-linux
# Connect to wifi...
wifi-menu