Skip to content

Instantly share code, notes, and snippets.

View sutt0n's full-sized avatar
🤠
yeehaw

Jojo Sutton sutt0n

🤠
yeehaw
View GitHub Profile
@sutt0n
sutt0n / alacritty.conf
Created October 26, 2025 13:08
alacritty conf
# Base16 Atelier Dune - alacritty color config
# Bram de Haan (http://atelierbramdehaan.nl)
[colors]
draw_bold_text_with_bright_colors = false
# Default colors
[colors.primary]
background = '0x20201d'
foreground = '0xa6a28c'
@sutt0n
sutt0n / .skhdrc
Last active December 17, 2024 23:08
skhdrc
# === Session defaults ===
# reset border color in default mode
:: default : yabai -m config active_window_border_color 0xE032CD32
# kickstart yabai
hyper - y : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"
# lock screen immediately
cmd - escape : pmset displaysleepnow
# logout
cmd + shift - e : osascript -e 'tell app "System Events" to log out'
# power down
@sutt0n
sutt0n / .yabairc
Created December 17, 2024 23:04
yabairc
#!/usr/bin/env sh
#
# for this to work you must configure sudo such that
# it will be able to run the command without password
#
# see this wiki page for information:
# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition
#
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
@sutt0n
sutt0n / sketchybarrc
Last active October 27, 2025 18:46
sketchybarrc
PLUGIN_DIR="$HOME/.config/sketchybar/plugins"
ITEM_DIR="$HOME/.config/sketchybar/items"
source $HOME/.config/sketchybar/colors.sh
source $HOME/.config/sketchybar/icons.sh
export FONT="Hack Nerd Font"
export NERD_FONT="Hack Nerd Font"
sketchybar --bar height=30 \
@sutt0n
sutt0n / graphit.py
Created August 12, 2020 15:06
Graph credit usage for CircleCI for a given workflow name
import json
import matplotlib.pyplot as plt
import pandas as pd
import requests
import datetime
"""
Config
"""
CIRCLE_TOKEN = "<your circle token>"
@sutt0n
sutt0n / cancel_last_ci.sh
Last active July 7, 2020 17:47
Cancel Last CircleCI Workflow from User via CLI
#!/bin/bash
CIRCLE_TOKEN="circle ci token"
VCS_SLUG="slug/org-name/proj-name"
PIPELINE_ID=$(curl --silent -X GET https://circleci.com/api/v2/project/${VCS_SLUG}/pipeline/mine -H "Circle-Token: ${CIRCLE_TOKEN}" -H 'Accept: application/json' | jq '[.[]][1][0].id')
PIPELINE_ID="${PIPELINE_ID%\"}"
PIPELINE_ID="${PIPELINE_ID#\"}"
WORKFLOW_ID=$(curl --silent -X GET https://circleci.com/api/v2/pipeline/${PIPELINE_ID}/workflow -H "Circle-Token: ${CIRCLE_TOKEN}" -H 'Accept: application/json' | jq '.items[0].id')
@sutt0n
sutt0n / New PR via CLI.md
Last active July 6, 2020 22:50
Faster way to create PRs via the CLI (without using the GitHub UI)

Open PR

This opens a browser to the PR interface. Useful for forked repositories. Suggest adding alias, pr in your ~/.bash_profile:

  • alias pr='~/open_pr.sh'

Usage (without alias)

  • Current branch: ./open_pr.sh
  • Another branch: ./open_pr.sh 123-add-profile-view

Keybase proof

I hereby claim:

  • I am sutt0n on github.
  • I am sutt0n (https://keybase.io/sutt0n) on keybase.
  • I have a public key ASA91AqjDA-1x_LRPyU7nAMef34I4D7UUtoe6VgWYjNgRAo

To claim this, I am signing this object:

@sutt0n
sutt0n / gist:f5716b18847291c62a71d04e22087b0e
Created October 6, 2016 19:39 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.
package challenges.Challenge237;
import java.io.*;
import java.nio.file.Files;
import java.util.List;
/**
* Challenge #237, Easy
* "Broken Keyboard"
* They had a broken keyboard. I bought a broken keyboard.