Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Wood IgnoredAmbience

View GitHub Profile
View gist:e619bce2993c9c4633db858aa6024849
Guidance
Coronavirus (COVID-19): safer travel guidance for passengers
Walking, cycling, and travelling in vehicles or on public transport during the coronavirus outbreak.
Published 12 May 2020
Last updated 3 July 2020 — see all updates
From:
Department for Transport
Applies to:
England (see guidance for Wales, Scotland, and Northern Ireland)
View azOrderInChaos.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IgnoredAmbience
IgnoredAmbience / zooniverse.user.js
Last active April 16, 2020 16:08
Zooniverse Transcription Keyboard Shortcuts User Script
View zooniverse.user.js
// ==UserScript==
// @name Zooniverse Transcription Keyboard Shortcuts
// @namespace https://gist.github.com/IgnoredAmbience/800b38847f881d5592e2148fbc3d4bda
// @updateURL https://gist.github.com/IgnoredAmbience/800b38847f881d5592e2148fbc3d4bda/raw/zooniverse.user.js
// @version 0.2
// @description Make Zooniverse Transcription quicker to use, enter will change between value entry textboxes, pages, and jump to Done button
// @author Thomas Wood
// @match https://www.zooniverse.org/projects/*/classify
// @grant GM_addStyle
// ==/UserScript==
@IgnoredAmbience
IgnoredAmbience / pdf.md
Last active August 23, 2019 10:14
Tiff and PDF Conversion Commands
View pdf.md

Extracting PDF Files to Images

PDF files that contain a single image are often a pain to work with, but it is simple to extract that image using pdfimages.

First, run pdfimages with the list command to check the document is composed of a single image:

$ pdfimages -list file.pdf
page   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------
   1     0 image    3508  2480  rgb     3   8  jpeg   no         8  0   300   300  409K 1.6%
@IgnoredAmbience
IgnoredAmbience / delphi-getit-build-fix.md
Last active February 4, 2023 04:07
Delphi GetIt Dependency Compile Build Error Fix
View delphi-getit-build-fix.md

Problem

When setting GetIt dependencies on a project, Emarcadero Delphi 10.2 Tokyo will fail the build with this error:

Project [...] (Make target(s)):
Target _CheckGetItPackageDependencies:
    Target _ExecGetItCmd:
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets : warning : Checking GetIt package dependencies
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(305,5): error MSB4018: The "GetItCmd" task failed unexpectedly.
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(305,5): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object.
        c:\program files (x86)\embarcadero\studio\19.0\bin\CodeGear.Common.Targets(305,5): error MSB4018:    at Borland.Build.Tasks.Common.CommandLineTask.Execute()
@IgnoredAmbience
IgnoredAmbience / emfcamp.pem
Created August 31, 2018 18:42
Emfcamp prm
View emfcamp.pem
-----BEGIN CERTIFICATE-----
MIIGEDCCBPigAwIBAgISA4N0QHkSlOIAlIvPOWnojBQwMA0GCSqGSIb3DQEBCwUA
MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD
ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xODA4MTAxNzIzNTJaFw0x
ODExMDgxNzIzNTJaMB0xGzAZBgNVBAMTEnJhZGl1cy5lbWZjYW1wLm9yZzCCASIw
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKnyzvSo+E+7Wm8zijbyHCsGK+i+
OPRzW6s0W2HfFlBFvHsiAOrxtg/aWMO8aHMxNPF7wEBCF2KjlcoFweT0MB+04kbl
ey89Cl70p+hCV+EQWZmV6Op6uc7FspL8vcNfGWLBDwMT+F880gE/mXcXYE6JMRrf
0qhXab+M4qzEwhlZL2/v4f0ptwxBDUuhL1mMo0f8d28iny55r4vEkw0CgfOZ+4xk
Cw2bQwgZwTROR8FxagaGoEXAJmikjgoH+SpwSpz0jyVTkoTmgGT7RF0yFrgfNtGC
@IgnoredAmbience
IgnoredAmbience / HOWTO.md
Last active June 17, 2022 15:47
How to register a personal device on the wired network at Imperial College London
View HOWTO.md

How to register a personal device on the wired network at Imperial College London

Useful if your machine's OS isn't pre-loaded with an Operating System with a web-browser(!)

Alternatively, you can contact ICT self-service.

Information required:

  • IP address of device (as assigned by the pre-registration network, 172.nnn.nnn.nnn, IP_ADDRESS in the below command)
  • MAC Address of device (xx:xx:xx:xx:xx:xx, MAC_ADDRESS in the below command)
  • Your college username and password (USER_NAME below, you will be prompted for the password)
@IgnoredAmbience
IgnoredAmbience / mathbb_unicode.ml
Last active January 10, 2018 20:31
int -> string, converting integers into double-struck unicode characters
View mathbb_unicode.ml
(** Conversion between integers and unicode \mathbb strings *)
(* 0-9 as unicode \mathbb{d} multibyte character strings *)
let ustr_bb_digits =
Array.init 10 (fun i -> Printf.sprintf "\xf0\x9d\x9F%c" (char_of_int (0x98 + i)))
(** Converts an integer into an array of decimal digits *)
let int_to_array i =
let rec f i acc = if i == 0 then acc else f (i/10) (i mod 10 :: acc) in
f i []