View buriedsignals.py
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/env python3 | |
import json | |
import requests_html | |
session = requests_html.HTMLSession() | |
response = session.get('https://buriedsignals.com/') | |
data = json.loads(response.html.find('#__NEXT_DATA__', first=True).text) | |
for post in data['props']['pageProps']['spotlights']['posts']: |
View sherlock.txt
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
comfortable.doublebedded.room | |
covent.garden.market | |
wonderfully.silent.house | |
hatherley.hydraulic.engineer | |
boscombe.valley.estate | |
gloves.patentleather.shoes | |
brilliantly.scintillating.blue | |
nothing.remarkable.save | |
homely.little.room | |
including.outdated.equipment |
View post
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
#!/bin/bash | |
# Set these environment variables and you can create a (text-only) post using | |
# your favorite command line text editor. | |
# | |
# - EDITOR: e.g. vim, emacs, etc | |
# - MASTODON_POST_HOST: the hostname for our Mastodon account, e.g. chaos.social | |
# - MASTODON_POST_TOKEN: an app access key with write:statuses permission | |
# | |
# See: https://gist.github.com/edsu/aa6f70bb20127b1e18e05dff5e470022 |
View run.sh
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
#!/bin/bash | |
cd /home/ed/Projects/mastodon_digest/ | |
# get the date | |
date=`TZ=GMT+24 date +%Y-%m-%d` | |
# create the output directory | |
output_dir="/var/www/inkdroid.org/mastodon-digest/$date" | |
mkdir $output_dir |
View 951426392348090368.json
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
{ | |
"edit_info": { | |
"initial": { | |
"editTweetIds": [ | |
"951426392348090368" | |
], | |
"editableUntil": "2018-01-11T12:41:43.240Z", | |
"editsRemaining": "5", | |
"isEditEligible": true | |
} |
View 951424303093944320.json
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
{ | |
"edit_info": { | |
"initial": { | |
"editTweetIds": [ | |
"951424303093944320" | |
], | |
"editableUntil": "2018-01-11T12:33:25.123Z", | |
"editsRemaining": "5", | |
"isEditEligible": true | |
} |
View paradise-lost-domains.txt
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
cumbrous.elements.earth | |
vaulted.either.host | |
without.exteriour.help | |
creating.derivative.works | |
reward.though.here | |
father.without.cloud | |
project.gutenbergtm.name | |
unfold.celestial.guide | |
fierce.strive.here | |
renowned.alcinous.host |
View public_domains.py
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
import string | |
import sys | |
import requests | |
import whois | |
from nltk import tokenize | |
BOOKFILE = sys.argv[1] | |
OUTPUTFILE = BOOKFILE + '.possible-domains.txt' |
View webpages.json
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
[ | |
{ | |
"url": "https://www.theonion.com/nasa-panics-after-asteroid-fires-back-1849587289", | |
"status": 200, | |
"content_type": "text/html; charset=utf-8", | |
"title": "NASA Panics After Asteroid Fires Back", | |
"description": "The Onion brings you all of the latest news, stories, photos, videos and more from America's finest news source.", | |
"image": "https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/f0c0e17e9ed6acb0e1bb946a9e233c1d.jpg", | |
"publisher": "The Onion", | |
"keywords": [ |
NewerOlder