Skip to content

Instantly share code, notes, and snippets.

View dominicsayers's full-sized avatar
☣️
I'm back

Dominic Sayers dominicsayers

☣️
I'm back
View GitHub Profile
@dominicsayers
dominicsayers / gist:4510890
Created January 11, 2013 14:06
[FIXED] Problem installing pg gem: checking for PQconnectdb() in -lpq... no
dominicsayers$ sudo gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/local/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
@dominicsayers
dominicsayers / literal-backtick.md
Last active June 16, 2020 11:15
Literal backtick

The next word `is` surrounded by literal backticks

@dominicsayers
dominicsayers / white-loaf-kenwood-chef.md
Last active May 8, 2020 15:44
How to make a basic white loaf in a Kenwood Chef

How to make a basic white loaf in a Kenwood Chef

Ingredients

  • Boiling water 150ml
  • Cold water 150ml
  • Fresh baker's yeast 2 tsp
  • Strong bread flour 500g
  • Sugar 2 tsp
  • Salt 1 tsp
  • egg whites 1
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
@dominicsayers
dominicsayers / WSL + Docker setup for development.md
Last active February 9, 2020 13:23
Setting up Windows Services for Linux and Docker for Windows for Ruby on Rails development

Setting up Windows Services for Linux (WSL) and Docker for Windows for Ruby on Rails development

Prerequisites

On your Windows 10 development machine you should have installed

  1. Windows Services for Linux and a Debian-based app like Ubuntu.
  2. putty
  3. Docker for Windows (and I use Kitematic because I'm a Docker n00b)
Verifying my Blockstack ID is secured with the address 1F6D7pjF5BrTQuNyuq9RXVBnAHkj7nY4Pw https://explorer.blockstack.org/address/1F6D7pjF5BrTQuNyuq9RXVBnAHkj7nY4Pw
Verifying that "dominicsayers.id" is my Blockstack ID. https://explorer.blockstack.org/name/dominicsayers.id
@dominicsayers
dominicsayers / crunchbase-api-v1.md
Created September 19, 2011 14:01
CrunchBase API v1

UPDATE: CrunchBase have now restored their own documentation so you should now use the canonical information at http://developer.crunchbase.com/. I am leaving this here in case of existing links to it but it is of historical interest only.

NOTE: This documentation has been put here because I couldn't find it anywhere else. I am not associated with Crunchbase in any way. I cannot help you with your Crunchbase API problems. If you need help try here: https://groups.google.com/forum/#!forum/crunchbase-api

CrunchBase API v1 Documentation

Overview

@dominicsayers
dominicsayers / +++ zsh and bash configuration +++
Last active June 7, 2019 13:31
Dominic's bash & zsh shell config
Dominic's configuration files for `zsh` and `bash`
@dominicsayers
dominicsayers / HMRC-Basic-PAYE-Tools-1046.md
Created March 25, 2013 15:23
HMRC Basic PAYE Tools authentication error 1046

If you're getting an authentication error when trying to make a submission using the HMRC Basic PAYE Tools then check your password length. A password of more than 12 characters will not work.

The website lets you set up a longer password and use it to log in but it will not work for the Basic PAYE Tools.

Change your password on the website to 12 characters or less and you should be able to make your submission. Note that on the password change page it does tell you it should be 12 characters or less.