Skip to content

Instantly share code, notes, and snippets.

Avatar

Rich Churcher richchurcher

  • Auckland, New Zealand
View GitHub Profile
@richchurcher
richchurcher / .Xresources
Last active Mar 8, 2022
Asus G14 Zephyrus reverse PRIME config (Nvidia dGPU, AMD iGPU)
View .Xresources
Xft.dpi: 130
@richchurcher
richchurcher / docker-compose.yml
Last active Aug 3, 2020
docker-compose extension field syntax
View docker-compose.yml
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:
View git-logout
#!/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
View Board.js
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 () {