Skip to content

Instantly share code, notes, and snippets.

View Nothing4You's full-sized avatar

Richard Schwab Nothing4You

View GitHub Profile
@Nothing4You
Nothing4You / ansible.yml
Created June 8, 2018 18:57 — forked from jgornick/ansible.yml
Ansible: Remove All Files Except
---
- name: Capture files in path and register
shell: >
ls -1 /path/to/files
register: files
- name: Remove files except specified
file:
path: "/path/to/files/{{ item }}"
state: absent
@Nothing4You
Nothing4You / letsencrypt_notes_openbsd.sh
Last active June 19, 2023 13:16 — forked from lachesis/letsencrypt_notes.sh
Set up LetsEncrypt using acme.sh without root on OpenBSD
# Modified for OpenBSD
# Assumes being root
# Requires curl to be installed, wget can also be used, relevant commands need to be adjusted. acme.sh supports both.
# Configured to use Cloudflare DNS for verification
# How to use "acme.sh" to set up Lets Encrypt without root permissions
# See https://github.com/Neilpang/acme.sh for more
# This assumes that your website has a webroot at "/var/www/<domain>"
# I'll use the domain "EXAMPLE.com" as an example