Demo of generating a JWT and authenticating with Ghost's Admin API.
- Save
ghost-auth.sh
locally - With Ghost running on localhost:2368
sh ghost-auth.sh {admin api key}
to run
#!/usr/bin/env bash | |
# | |
# Reads AirTag data from the FindMy.app cache and converts it to a daily GPX file | |
# | |
# Rsyncs the data to a web accessible folder that can be displayed with e.g. | |
# https://gist.github.com/henrik242/84ad80dd2170385fe819df1d40224cc4 | |
# | |
# This should typically be run as a cron job | |
# |
#!/usr/bin/python | |
# HEMA ExplorerMAP | |
# Download tiles from http://skippy.hema-labs.com/AUS/ExplorerMap_v1_2/ | |
# To remove empty files when it finishes use: find . -type d -empty -delete | |
# To compress the files use: advpng -z4 | |
# To build an .mbtiles flies from the resulting folders, use https://github.com/mapbox/mbutil | |
import sys | |
import os | |
import math | |
import requests |
<!-- | |
/* | |
* Serverless contact form handler for Cloudflare Workers. | |
* Emails are sent via Mailgun. | |
* | |
* Learn more at https://maxkostinevich.com/blog/serverless-contact-form | |
* Live demo: https://codesandbox.io/s/serverless-contact-form-example-x0neb | |
* | |
* (c) Max Kostinevich / https://maxkostinevich.com | |
*/ |
//Leonardo | |
Serial_ & dbgTerminal = Serial; | |
HardwareSerial & espSerial = Serial1; | |
////UNO & M328P | |
//#include <SoftwareSerial.h> | |
//SoftwareSerial dbgTerminal(10, 11); // RX, TX | |
//HardwareSerial & espSerial = Serial; | |
// |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to gzipped file | |
curl -s https://www.iblocklist.com/lists.php \ | |
| grep -A 2 Bluetack \ | |
| sed -n "s/.*value='\(http:.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' \ | |
| gzip - > bt_blocklist.gz |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |