Skip to content

Instantly share code, notes, and snippets.

@kris-anderson
kris-anderson / nut_package_fix.yml
Last active August 19, 2023 11:09
pfSense NUT Package Fix Through Ansible
---
- name: get sha256sum of /usr/local/libexec/nut/usbhid-ups
stat:
path: /usr/local/libexec/nut/usbhid-ups
checksum_algorithm: sha256
get_checksum: yes
register: nut_orig
- name: backup original /usr/local/libexec/nut/usbhid-ups
copy:
@kris-anderson
kris-anderson / gist:3d91a8d7e5e050558f9b
Created January 30, 2015 01:59
Enable Subsonic SSL on Ubuntu 14.04 using StartSSL
1.) Download the certificates from StartSSL:
Private Key (myserver.key)
Server Certificate
CA Certificate
Intermediate Certificate
2.) Copy the contents from the above certificates and paste them into a new server.crt file.
3.) Next, convert the cert from PEM to PKCS12 format using the following command:
@jpawlowski
jpawlowski / brew-sync.sh
Last active September 26, 2023 19:54
Sync Homebrew installations between Macs via Dropbox
#!/bin/bash
# Sync Homebrew installations between Macs via Dropbox
#
BREW="/usr/local/bin/brew"
# first get local settings
echo "Reading local settings ..."
rm -f /tmp/brew-sync.*