Skip to content

Instantly share code, notes, and snippets.

View jprenken's full-sized avatar
🛡️

James Renken jprenken

🛡️
View GitHub Profile
@jprenken
jprenken / install-chrome.sh
Created July 2, 2022 04:37
Install Chrome on Debian / Ubuntu the pedantic way
sudo mkdir /etc/apt/keyrings
curl --fail --silent --show-error --location https://dl.google.com/linux/linux_signing_key.pub \
| gpg --dearmor \
| sudo tee /etc/apt/keyrings/google.gpg
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.gpg] https://dl.google.com/linux/chrome/deb/ stable main" \
| sudo tee /etc/apt/sources.list.d/google-chrome.list
# We want to manage the Google Chrome repository manually, so that we can use
@jprenken
jprenken / 10-wireguard
Created February 7, 2022 12:17
OPNsense: Start/stop WireGuard based on CARP state change (place in /usr/local/etc/rc.syshook.d/carp/)
#!/usr/local/bin/php
<?php
/*
* Copyright (C) 2004 Scott Ullrich <sullrich@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*