Skip to content

Instantly share code, notes, and snippets.

View dg01d's full-sized avatar
🏠
Working from home

daniel goldsmith dg01d

🏠
Working from home
View GitHub Profile
@dg01d
dg01d / nginx.conf
Created May 20, 2018 11:52
Anonymised Nginx Logs
map $remote_addr $anon_remote_addr {
"~^(?<ip_a>\d+\.\d+)\.\d+\.\d+" "$ip_a";
}
log_format anonymised '$anon_remote_addr.0.0 - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"';
@dg01d
dg01d / FSF Amended By-Laws.text
Created March 23, 2021 20:37
Because the Free Software Foundations By-Laws are provided in a scanned copy of a printed text file...
BY-LAWS
OF
FREE SOFTWARE FOUNDATION, INC.
ARTICLE I
NAME, PURPOSES, LOCATION, CORPORATE SEAL, AND FISCAL YEAR
Section 1 - Name and Purposes. The name and purposes of the corporation