Transform XML document:
xsltproc -o output.xml update-attribute.xslt input.xml
#!/usr/bin/env python | |
# Copyright (c) 2018 Matthew Daley | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation the | |
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
# sell copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
Systemd by default breaks DNS name resolution by overriding /etc/resolv.conf to use its useless stub DNS server, and not the network managed one.
Symlink /run/systemd/resolve/resolv.conf to /etc/resolv.conf:
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
Sources:
#!/bin/sh | |
# | |
# This script activates the given Python virtual environment, and then | |
# executes the given command. | |
# | |
# Author: Caleb P. Burns | |
# License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
# Version: 1.0.0 | |
# |
A TLS certificate can be manually requested from [Let's Encrypt][1] using [certbot][2]. In order to successfully acquire the certificate you will need to have a domain name properly set up through DNS, and you need to be able to make a file available from an arbitrary URL under your domain.
TL;DR
#!/bin/sh | |
# | |
# This script sets or removes the Dropbox ignored flag (the | |
# "com.dropbox.ignored" attribute) on a path. | |
# | |
# Author: Caleb P. Burns | |
# License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
# Version: 1.0.0 | |
# Created: 2020-07-18 | |
# Updated: 2020-07-18 |
OpenVPN Access Server 2.5.2 on Ubuntu 16.04 can no longer connect to the OpenVPN licence server (as of some time in 2023). This can be temporarily fixed by upgrading to 2.8.8 which still works (as of 2023-12-30 at least). According to OpenVPN's Keeping Access Server Updated, the openvpn-as package is not installed through the repositories until 2.7.5. If you happen to be on an earlier version, say 2.5.2, you need to setup the repository. The instructions for Ubuntu 16.04 are out-of-date if you can find them.
NOTE: All commands are assumed to be run as root. If not running as root, use the sudo command where appropriate.
Download the OpenVPN repo signing key (The curl command can be used, but only wget was available on my machine):