Skip to content

Instantly share code, notes, and snippets.

View richchurcher's full-sized avatar

Rich Churcher richchurcher

  • Auckland, New Zealand
View GitHub Profile
#!/bin/bash
# Logout current GitHub credentials and remove global user.name, user.email
echo -e "host=github.com\nprotocol=https\n" | git credential-osxkeychain erase
git config --unset-all --global user.name
git config --unset-all --global user.email
@richchurcher
richchurcher / FAQ.md
Last active January 14, 2024 17:35
Pirate Software Jam unofficial FAQ. May disappear without warning.

Unofficial JamFAQs

I am not connected with Pirate Software in any way, I'm just a big fan of what they're trying to do and what they've done for me. Please use the following document as the single source of truth:

https://itch.io/jam/pirate

Twitch links may expire, but indicate that at least Thor has answered this question or one like it.

Follow the rules. Don't be a dumbass.

@richchurcher
richchurcher / .Xresources
Last active March 8, 2022 20:08
Asus G14 Zephyrus reverse PRIME config (Nvidia dGPU, AMD iGPU)
Xft.dpi: 130
@richchurcher
richchurcher / docker-compose.yml
Last active August 3, 2020 03:06
docker-compose extension field syntax
version: "3"
# See: https://hackernoon.com/a-better-way-to-develop-node-js-with-docker-cd29d3a0093
# This is the v3 syntax to achieve essentially the same thing. Note that if you launched this with a simple
# `docker-compose up` it would attempt to start every definition at the service level, which is not what you
# want! However, you can leverage the fact that `depends_on` launches the listed services prior to the
# dependent service, so in this example `docker-compose up myproject_web` would start the db container
# before the web container. Alternatively, you could just throw the stuff you don't want started with `up`
# into a separate YAML file, as the article demonstrates.
services:
function Board() {}
Board.prototype.save = function () {
ApiFacade.putBoard(this, function (payload) {
// TODO: use response here in some fashion? Error handling?
console.log("Payload returning from save(): ", payload);
});
}
Board.prototype.load = function () {