Skip to content

Instantly share code, notes, and snippets.

View tommorris's full-sized avatar

Tom Morris tommorris

View GitHub Profile
# MacBook Pro
$ john --wordlist=/usr/local/opt/john/share/john/password.lst --rules hashes.txt
Loaded 2 password hashes with 2 different salts (bcrypt [Blowfish 32/64 X2])
Press 'q' or Ctrl-C to abort, almost any other key for status
love (?)
london (?)
2g 0:00:00:24 100% 0.08100g/s 23.81p/s 27.37c/s 27.37C/s lionking..london
Use the "--show" option to display all of the cracked passwords reliably
Session completed
# query that finds people who have a sexual orientation set
# but for which there is no source.
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT DISTINCT ?item ?itemLabel ?statement WHERE {
Rating:
5/5 all essential functionality available offline by default, works reliably
4/5 most key functionality available offline by default, mostly works
3/5 some functionality available, may require configuration or manual faff
2/5 minimally functional when offline, considerable configuration or manual faff required
1/5 barely functional offline, complex configuration or effort required to use
0/5 not functional without an Internet connection
Principles:
@tommorris
tommorris / load.sh
Created June 16, 2016 13:55
osm2pgsql
# load pbf into postgres
osm2pgsql --create -H localhost --database osm ~/Downloads/great-britain-latest.osm.pbf -j -s
@tommorris
tommorris / new_gist_file_0
Created June 16, 2016 11:14
osm2pgsql loading
# load pbf into postgres
osm2pgsql --create -H localhost --database osm ~/Downloads/great-britain-latest.osm.pbf -j -s
@tommorris
tommorris / 0_reuse_code.js
Created June 16, 2016 11:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tommorris
tommorris / ical_test.md
Last active November 2, 2019 12:14
iCalendar test documentation

iCalendar TZ testing

The following iCalendar snippet works in Fantastical and Calendar.app

BEGIN:VCALENDAR
BEGIN:VEVENT
SUMMARY:Test Event
DTSTART;TZID=America/Los_Angeles:20160630T120000
@tommorris
tommorris / tz_examples.py
Created April 19, 2016 17:25
How python iCalendar, iso8601 and pytz can work together for ICS implementation
import icalendar
import pytz
ev = icalendar.Event()
ev.add('dtstart', iso8601.parse_date("2016-01-01 00:00:00", default_timezone=pytz.timezone("Asia/Tokyo")))
print(ev.to_ical())
# BEGIN:VEVENT
# DTSTART;TZID=Asia/Tokyo;VALUE=DATE-TIME:20160101T000000
# END:VEVENT
{{db-spam}}
Frogans technology is a new [[Internet]] technology for the development and publication of content online. This technology has been developed in the form of an open standard for the Internet.<ref>[http://www.frogans.org Web site of the Frogans technology].</ref>
The Frogans project was started in 1999. Since 2012, it has been led by the [http://www.op3ft.org OP3FT], a non-profit organization registered in [[France]] acting in the public interest.
==References==
<references/>
[[Category:Internet]]
[[Category:2000s in computer science]]
@tommorris
tommorris / bugreport.md
Last active April 3, 2016 17:33
A bug report for GDS / GOV.UK over hreflangs on multilingual content

On GOV.UK, there are a number of pages with multilingual content, specificially in the Worldwide section. For instance, most pieces of content that you can find from the UK and Brazil section are available in both English and Portuguese. The same is true for most other countries: the material about the UK's relationship with France is mostly available in both English and French; the material on Germany is in both English and German.

To illustrate the issue, take this page:

British Embassy in Brasilia - GOV.UK