Skip to content

Instantly share code, notes, and snippets.

View rchatham's full-sized avatar
👨‍💻
code code code...

Reid Chatham rchatham

👨‍💻
code code code...
View GitHub Profile
@rchatham
rchatham / amethyst.yml
Last active February 24, 2024 08:18
Amethyst config
# Default settings for amethyst
# Repo: `https://github.com/ianyh/Amethyst`
#
# Note due to issue 1419 (https://github.com/ianyh/Amethyst/issues/1419) some
# config values may conflict and not work if they are the same as the default
# values for amathyst. You can see these values on github at
# https://github.com/ianyh/Amethyst/blob/development/Amethyst/default.amethyst
# If you're experiencing conflicts and the settings are the same as the default,
# comment out the commands in this file.
#
@rchatham
rchatham / loc.sh
Created January 27, 2024 23:56
Lines Of Code
#!/bin/bash
# Check if both directory and extension arguments are provided
if [ $# -ne 2 ]; then
echo "Usage: ./script.sh [directory] [file extension]"
exit 1
fi
dir=$1
ext=$2
@rchatham
rchatham / .zshrc
Last active February 22, 2024 06:11
zsh config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@rchatham
rchatham / setup.sh
Last active March 25, 2024 05:34
Setup script for new macOS
#!/bin/bash
# Make Dock only show active apps
defaults write com.apple.dock static-only -bool true; killall Dock
defaults write com.apple.finder _FXSortFoldersFirst -bool true; killall Finder
# Check if Homebrew is installed and install if not
if ! command -v brew &> /dev/null
then
echo "Installing Homebrew..."
@rchatham
rchatham / resume.json
Last active June 14, 2024 17:59
resume
{
"name": "REID E. CHATHAM",
"contact": {
"email": "[email protected]",
"website": "https://www.reidchatham.com",
"github": "https://github.com/rchatham"
},
"summary": "I am a seasoned Software Engineer specializing in iOS development and proficient in Swift, Objective-C, and Python. I have a track record in building scalable applications, improving code architecture, and implementing user-centered design, remaining agile while maintaining the integrity of mission critical code. I have experience building apps from the ground up with few to no constraints to working on large scale applications serving tens of millions of daily users.",
"education": [
{
@rchatham
rchatham / tmux.conf
Last active February 28, 2024 07:27
tmux config
unbind C-b
set-option -g prefix C-Space
bind-key C-Space send-prefix
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set-option -g mouse on
@rchatham
rchatham / JSONCafe-SwiftyJSON.template
Created September 1, 2020 17:23
A SwiftyJSON template file for models generated using JSONCafe
import Foundation
import SwiftyJSON
class {{className}}: Codable {
{{#properties}}
var {{nativeName}}: {{type}}
{{/properties}}
@rchatham
rchatham / jwtRS256.sh
Created July 22, 2019 19:16 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
//
// CoordinatorType.swift
//
// Created by Reid Chatham on 9/19/16.
//
#if os(macOS)
import Cocoa
public typealias MyViewController = NSViewController
public typealias MyTabController = NSTabViewController
@rchatham
rchatham / AppDelegate+CoordinatorType.swift
Last active February 27, 2017 00:48
CoordinatorType Example
import UIKit
extension AppDelegate: CoordinatorType {
weak internal var delegate: CoordinatorTypeDelegate? { return nil }
internal var childCoordinators: [CoordinatorType] {
get {
return AppDelegate.Static.childCoordinators
}
set {