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 / git-config-global.md
Last active June 17, 2023 12:47
My global git config
$ git config --global --list
user.name=Dominic Sayers
user.email=dominic@sayers.cc
user.signingkey=C7750E92
commit.gpgsign=true
core.editor=code --wait
rebase.autosquash=true
pull.rebase=true
tag.gpgsign=true
@dominicsayers
dominicsayers / docker-on-raspberry-pi.md
Last active February 16, 2023 09:34
Installing docker on a Raspberry Pi running Ubuntu

Installing docker on a Raspberry Pi running Ubuntu

Basic docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
  "deb [arch=arm64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

Installing Webmin on Ubuntu 22.04

The canonical instructions here are pretty good but there's a glaring error. Actually it's not glaring, it took me many hours of frustration to spot it. But you're not interested in my emotional issues, you're here for the solution. Here it is:

The instructions tell you to create a webmin.list file containing this:

deb [signed-by=/usr/share/keyrings/jcameron-key.gpg] https://download.webmin.com/download/repository sarge contrib
@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":
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
Gem::Specification.new do |spec|
spec.name = "oc-events-jobs"
spec.version = ""
spec.summary = ""
spec.authors = ""
spec.files = []
end
@dominicsayers
dominicsayers / git-bisect-cheatsheet.md
Last active October 22, 2020 08:24
git bisect cheatsheet
$ git bisect start
$ git bisect bad
$ git bisect good dd9b00ad73d71a84e11523c062048daaa8e590e9
Bisecting: 14 revisions left to test after this (roughly 4 steps)
[e6ac8fb2b6c9ee04d0600690f477e785f6c02330] Delegate create_graph_node to the graph client
$ git bisect run rspec ./spec/integration/company_branch_spec.rb:49

...