Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
#!/bin/bash | |
# /volume1/UDMBackup is the path to the NFS share on the Synology | |
# /nfs/UDMBackup is the mount point on the local Linux server where the script runs | |
# /opt/scripts/UDM_pass is a text file containing the root account password on the UDM | |
# I run this script on an Ubuntu VM for ease of maintenance and save the backups on a Synology using NFS | |
LOGFILE="/opt/scripts/udmpro-backup.log" | |
BKUPSCRIPT="sshpass -f /opt/scripts/UDM_pass scp -o StrictHostKeyChecking=no -r root@<<UDM PRO IP ADDRESS>>:/mnt/data/unifi-os/unifi/data/backup/autobackup/* /nfs/UDMBackup" | |
mount <<SYNOLOGY IP ADDRESS>>:/volume1/UDMBackup /nfs/UDMBackup |
# Used as reference: https://gist.github.com/maxrimue/ca69ee78081645e1ef62 | |
platform::semver_compare() { | |
normalize_ver() { | |
echo "${${1//./ }//v/}" | |
} | |
compare_ver() { | |
[[ $1 -lt $2 ]] && echo -1 && return | |
[[ $1 -gt $2 ]] && echo 1 && return |
# Install keybase and pinentry-mac | |
brew update | |
brew install keybase pinentry-mac | |
# Create a Keybase.io account and key | |
keybase signup | |
# Or if you have an account | |
keybase login |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
<!--- Show here: https://twitter.com/latteandcode/status/1356584007199318016 ---> | |
.remove-bg { | |
filter: brightness(1.1); | |
mix-blend-mode: multiply; | |
} |
#!/usr/bin/env bash | |
# To use this script see comments | |
write::out() { | |
echo "$@" | |
} | |
write::log() { | |
[[ ! -z "$DEBUG" ]] && write::out "$@" |
[Match] | |
Name=eth0.30 | |
[Network] | |
DHCP=no | |
Gateway=192.168.X.1 | |
DNS=192.168.X.1 | |
Domains=localnetwork.local | |
[Address] |
[NetDev] | |
Name=eth0.30 | |
Kind=vlan | |
[VLAN] | |
Id=30 |
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Generador de claves Zigbee para Home Assistant</title> | |
<style> | |
body { | |
font-family: helvetica, arial, sans-serif; | |
} |
#!/usr/bin/env bash | |
# TODO: Need to figure out the settings for the following: | |
# 1) Dock: Items with order (not capturing binary data - since that is dependent on installed apps) | |
# 2) Security & Privacy Preferences: Full Disk Access, Camera, Microphone | |
# 3) Login items for my user (i.e. apps started when I login) | |
# 4) Retina displays | |
## | |
# This is a script with useful tips taken from: |