Skip to content

Instantly share code, notes, and snippets.

@nahall
nahall / connecting_to_a_ubiquiti_unifi_vpn_with_a_linux_machine.txt
Last active November 10, 2023 03:53
Connecting to a Ubiquiti Unifi VPN with a Linux machine
This guide assumes that you have already set up a Ubiquiti Unifi VPN following the guide:
https://help.ubnt.com/hc/en-us/articles/115005445768-UniFi-L2TP-Remote-Access-VPN-with-USG-as-RADIUS-Server
To configure a Linux machine to be able to connect remotely I followed these steps. This guide was written for Debian 8.
- In Debian install the "xl2tpd" and "strongswan" packages.
- Edit /etc/ipsec.conf to add the connection:
conn YOURVPNCONNECTIONNAME
@berndbausch
berndbausch / LXD-cheat-sheet.md
Last active May 15, 2024 14:28
LXD cheat sheet

Useful LXD commands

Summarized from https://stgraber.org/2016/03/19/lxd-2-0-your-first-lxd-container-312/.

Interestingly, the LXD command line client is named.... lxc!

List available containers

lxc image list ubuntu:        # ubuntu: is officially supported image source
lxc image list images:        # images: is an unsupported source
lxc image alias list images:  # lists user-friendly names
@cmonroe
cmonroe / nest-protect-direct.groovy
Last active September 18, 2023 17:45
Nest Protect Device Handler for SmartThings
/**
* Nest Protect (Direct)
* Author: chad@monroe.io
* Author: nick@nickhbailey.com
* Author: dianoga7@3dgo.net
* Date: 2016.01.24
*
*
* INSTALLATION
* =========================================