Skip to content

Instantly share code, notes, and snippets.

Peter TB Brett peter-b

Block or report user

Report or block peter-b

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@peter-b
peter-b / PasswordDemo.livecodescript
Last active Mar 28, 2017
HMAC-SHA-1 password storage using LiveCode
View PasswordDemo.livecodescript
/* Compute a hash-based message authentication code
using the SHA-1 hash. This is broken; it should correctly
follow RFC 2104. */
private function hmacSha1 pKey, pMessage
return sha1digest(pKey & sha1digest(pKey & pMessage))
end hmacSha1
/* Constant time string comparison algorithm. This
prevents against timing attacks on the hashed password
comparison. */
@peter-b
peter-b / install-buildbot.ps1
Created Feb 21, 2017
PowerShell script for installing a buildbot worker on Windows
View install-buildbot.ps1
# PowerShell script for installing BuildBot 0.8.12 on Windows Server 2016
# Datacenter Edition
# For full explanation of everything in this script, see:
# http://blog.peter-b.co.uk/2017/02/deploying-buildbot-workers-on-windows.html
# Copyright (C) 2017 LiveCode Ltd.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@peter-b
peter-b / ensembl-test.py
Created Apr 28, 2016
Contig to chromosome mapping with Ensembl
View ensembl-test.py
import requests
import sys
def ensembl_get(ext):
uri = 'http://rest.ensemblgenomes.org' + ext
r = requests.get(uri,
headers = { "Content-Type": "application/json" })
if not r.ok:
r.raise_for_status()
@peter-b
peter-b / libnetlist.md
Last active Aug 29, 2015
libnetlist ideas
View libnetlist.md
You can’t perform that action at this time.