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 / www
Last active January 23, 2016 16:15
# inside the ssl server block - no idea WHY this worked, but it DID:
location ~ /.well-known {
allow all;
}
#Server declaration for non-encrypted port 80
server {
listen 80;
server_name mysite.com www.mysite.com;
#!/bin/bash
TRIGGER="/home/daniel/shares/trig/trig"
cd /home/daniel/shares/drafts/
for i in *.md
do
if grep -q @post ${i}; then
echo "process.sh: $(date)" >> /home/daniel/shares/ascraeus_proc.log 2>&1
sed -i '/status:/d' ${i}
TITLE=$(grep -i title\: ${i} | sed 's/[Tt]itle\:\ //g;s/^[ \t]*//;s/[ \t]*$//;s/[.!]//g;s/\ /\-/g;s/[^[:print:]]//')