This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your main nginx config file. | |
http { | |
# Existing configuration… | |
# Enable blocks based on IPs used by Fediverse instance domain names. | |
include /etc/nginx/blocklist-ip.conf; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"crypto/sha256" | |
"crypto/tls" | |
"crypto/x509" | |
"log" | |
"net" | |
"net/http" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# WebExcursions, a script for gathering new Pinboard links with a certain tag | |
# and generating Markdown/Jekyll posts when enough are collected. | |
# Brett Terpstra 2013 | |
# | |
# -f to force writing out current bookmarks to file regardless of count | |
%w[fileutils set net/https zlib rexml/document time base64 uri cgi stringio].each do |filename| | |
require filename | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pastebin_dropbox(Path) -> | |
fun ("", _) -> | |
fun pastebin_devnull/1; | |
(Filename, _ContentType) -> | |
Date = fmt_date(date()), | |
RelName = filename:join([Date, | |
mochicode:url64_encode(term_to_binary(now())), | |
filename:basename(Filename)]), | |
AbsName = filename:join([Path, RelName]), | |
ok = filelib:ensure_dir(AbsName), |