Skip to content

Instantly share code, notes, and snippets.

View pzl's full-sized avatar
👋

Dan Panzarella pzl

👋
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pzl
pzl / bookstack-nginx.conf
Created February 1, 2018 15:40
bookstack on alpine
server {
listen 80 default;
listen [::]:80;
server_name bookstack.dev;
set $base /opt/bookstack;
root $base/public;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
@pzl
pzl / nm-openvpn-lowercase.sh
Created June 21, 2017 20:38
Quick script to convert networkmanager openvpn config files to have lowercase cipher names. To fix a weird case-sensitive bug.
#!/bin/bash
grep -rl "cipher=[A-Z0-9\-]\+$" /etc/NetworkManager/ | while read -r line; do
sed -i 's/cipher=\(.*\)/cipher=\L\1/' "$line"
done