Skip to content

Instantly share code, notes, and snippets.

View reidcooper's full-sized avatar

Reid Cooper reidcooper

View GitHub Profile
@reidcooper
reidcooper / functional_composition.go
Last active October 13, 2023 16:25
functional_composition.go
package main
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
)
type DatabaseFetcher struct {
@reidcooper
reidcooper / README.md
Created December 12, 2022 00:56 — forked from iain/README.md
Minimaliain ZSH theme

Minimaliain

This is my ZSH theme. I've had it for years, this adoption is for use as an antigen theme.

The git prompt looks like this:

  • Current git project name (blue: last exit status was ok, red: last exit status failed)
  • Time since last commit
  • Branch name or commit ref (green: working tree is clean, red: dirty working tree)
  • Merge status (↑ is you can push, ↓ is you can pull, ↕ means you have diverged)

Configure ddclient with Namecheap

Namecheap Configuration

  1. Click the Manage button next to the domain in the Domain List view
  2. In the Domain tab, scroll down and remove any entries in the Redirect Domain list
  3. In the Advanced DNS tab...
  4. Turn on Dynamic DNS and make a note of the password
  5. Add an A Record for @ pointing to 127.0.0.1
@reidcooper
reidcooper / gist:d15fe923518ef30e53aa54db0d248759
Created March 27, 2020 18:10
Bitbar - Open up Finder Window
#!/bin/bash
echo "⌘ | bash=$0 param1=finder terminal=false"
echo '---'
if [[ "$1" == 'finder' ]] ; then
open /Users/reidcooper -a /System/Library/CoreServices/Finder.app
fi