Skip to content

Instantly share code, notes, and snippets.

@philipwhiuk
philipwhiuk / spacelaunchAcronyms.html
Last active December 3, 2020 13:13
Space Launch Acronyms
<html>
<head>
<title>Space Launch Acronyms</title>
</head>
<body>
<dl>
<dt>BO</dt><dd>Blue Origin - Jeff Bezos' rocket company</dd>
<dt>BN</dt><dd>Booster Number - part of the naming scheme for SpaceX's SuperHeavy test vehicles</dd>
<dt>CAA</dt><dd>Crew Access Arm - the mechanism by which crew board the vehicle - also used to load cargon on Cargo Dragon missions</dd>
<dt>DM</dt><dd>Demo Mission - part of the naming scheme for SpaceX's Crew Dragon verification flights</dd>
@philipwhiuk
philipwhiuk / projectBuild.md
Last active December 20, 2019 11:31
Building Go With Jenkins

Project structure:

/pkg
  /tool
     /main.go
/cmd
  /tool
     /lib
 service.go
@philipwhiuk
philipwhiuk / Socket.java
Created January 8, 2018 00:44
Socket that supports DNS-SEC lookup
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.util.Set;
import android.util.Log;
import de.measite.minidns.dnssec.DNSSECValidationFailedException;
@philipwhiuk
philipwhiuk / mime4JChanges.txt
Created September 9, 2017 08:57
MIME 4J Changes (0.72 -> 0.8.1)
6473fdc3ed59ef60e485249d3c493d669362e26d [maven-release-plugin] prepare release apache-mime4j-project-0.8.1
7a54eebe73a582ee9ead995a4e783d3e190fcf47 JAMES-2045 DateTimeFieldImpl should assume 19xx century when date without century >= 70
e32e83fbc6980e278e268007187d5a6be69bf2d2 JAMES-2045 LenientDateTimeField should support partial years
5acd2cf3c221b88e6e14cc4d18b2f4553d430f60 JAMES-2045 Correct DateTimeTests
149e3010ade21239c2c4a2f9f28ddf7626017832 JAMES-2045 Improve DateTimeTest readability with assertJ messages
7829f79a69bd3f07bfea324edbb30ab850b8c886 JAMES-2045 Add century when parsing dates without
5c5830375afc12b71055a73ce76e5895f0ab846e MIME4J-262 deprecated all MessageBuilder and replace it by Message.Builder
c14019ca08174d36f16ad45d6798ebb4f4f771cf MIME4J-262 bugfix of MessageBuilder regarding getDate
fdb3756b55c8d8e865f17469f5156dcaee10450e JAMES-1900 Offer header value sanitizing out of the box
f3a1cc5ca9622789efa9fb72de99a1fecf639e07 JAMES-1994 correct dead link
@philipwhiuk
philipwhiuk / badpreviewemail.txt
Created March 28, 2017 12:56
Email that produces bad preview
Content-Type: multipart/alternative;
boundary=--boundary_74062286_3f000ff4-fead-4bb3-9eda-98b85c32df36
----boundary_74062286_3f000ff4-fead-4bb3-9eda-98b85c32df36
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Cycle Republic=0A=0Abody {=0Amargin: 0;=0Apadding: 0;=0A-webkit-t=
ext-size-adjust: none;=0A-ms-text-size-adjust: none;=0A}=0A.links=
@philipwhiuk
philipwhiuk / chromium_crash.log
Created March 22, 2017 10:08
Chromium Crash on 7.1.2
03-22 10:05:43.438 4452-4452/com.fsck.k9.debug W/ResourceType: No known package when getting value for resource number 0x02150007
03-22 10:05:43.439 4452-4452/com.fsck.k9.debug W/ResourceType: No known package when getting value for resource number 0x02150007
03-22 10:05:43.440 4452-4452/com.fsck.k9.debug W/System.err: android.content.res.Resources$NotFoundException: Resource ID #0x2150007
03-22 10:05:43.447 4452-4452/com.fsck.k9.debug W/System.err: at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:190)
03-22 10:05:43.448 4452-4452/com.fsck.k9.debug W/System.err: at android.content.res.Resources.loadXmlResourceParser(Resources.java:2101)
03-22 10:05:43.448 4452-4452/com.fsck.k9.debug W/System.err: at android.content.res.Resources.getLayout(Resources.java:1115)
03-22 10:05:43.448 4452-4452/com.fsck.k9.debug W/System.err: at android.view.MenuInflater.inflate(MenuInflater.java:108)
03-22 10:05:43.448 4452-4452/com.fsck.k9.debug W/System.err: at org.chromium.content.browser.Sele
@philipwhiuk
philipwhiuk / emailSecurity.md
Last active November 16, 2016 10:17
Email Security 101

Here follows an extensive analysis of the state of email security.

Components

  • Alice's K-9 Email Client
  • Alice's Android Phone
  • Alice's WiFi Router
  • Alice's ISP
  • Alice's ISP's DNS Server
  • .com root nameserver
@philipwhiuk
philipwhiuk / badlyparsedSpam.eml
Last active August 18, 2016 14:39
A spam e-mail badly parsed by K9
X-Virus-Scanned: Debian amavisd-new at whiuk.com.
X-Spam-Flag: NO
X-Spam-Score: 3.709
X-Spam-Level: ***
X-Spam-Status: No, score=3.709 tagged_above=-999 required=6.31
tests=[BAYES_50=0.8, DKIM_ADSP_ALL=0.8, HTML_MESSAGE=0.001,
SPF_PASS=-0.001, TO_MALFORMED=2.099, T_TVD_MIME_EPI=0.01]
autolearn=no autolearn_force=no
MIME-Version: 1.0
Date: Sat, 30 Apr 2016 02:07:30 +0700
@philipwhiuk
philipwhiuk / badlyparsedSpam.eml
Created April 29, 2016 21:01
A spam e-mail badly parsed by K9
From philip@whiuk.com Fri Apr 29 20:07:36 2016
Return-Path: <philip@whiuk.com>
X-Original-To: philip@whiuk.com
Delivered-To: philip@whiuk.com
Received: from localhost (localhost [127.0.0.1])
by scarlet.richardwhiuk.com (Postfix) with ESMTP id 705F4616A9
for <philip@whiuk.com>; Fri, 29 Apr 2016 20:07:36 +0100 (BST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=whiuk.com; s=dkim;
t=1461956856; bh=7erqKUKyLRqUDr/N1XuaFir50AhfuFQ2xcvIRb1o6KU=;
h=Date:Subject:From:To:From;
@philipwhiuk
philipwhiuk / openpgp.txt
Created April 9, 2016 13:03
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:d2ad4eee138982df702cecc04025b355745d010d]