This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -fLo ~/.gitconfig --create-dirs https://gist.github.com/geoffjay/483828b55925045fc39687bbba573b2f | |
[user] | |
name = Geoff Johnson | |
email = [email protected] | |
[alias] | |
ci = commit -a | |
co = checkout | |
cop = checkout @{-1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Simple file refactoring for a c project, not intended for use, just | |
# preserving something I've used a couple of times. | |
function __refactor { | |
dir=$(echo $1 | sed 's/\/$//') | |
files=$(find $dir -type f -regex ".*\.[ch]") | |
for file in $files; do | |
new=$(basename $file | sed "s/$2/$3/") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
QUERY='{ | |
search(type: ISSUE, query: "is:pr state:closed repo:clio/grow", first: 100) { | |
nodes { | |
... on PullRequest { | |
title | |
number | |
additions | |
deletions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:filetype=ruby | |
# colours | |
BLACK = "\001\e[0;30m\002" | |
RED = "\001\e[0;31m\002" | |
GREEN = "\001\e[0;32m\002" | |
YELLOW = "\001\e[0;33m\002" | |
BLUE = "\001\e[0;34m\002" | |
MAGENTA = "\001\e[0;35m\002" | |
CYAN = "\001\e[0;36m\002" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"$schema" = "https://starship.rs/config-schema.json" | |
# colorscheme | |
# | |
# #2E3440 | |
# #3B4252 | |
# #434C5E | |
# #4C566A | |
# #D8DEE9 | |
# #E5E9F0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"models": [ | |
{ | |
"model": "claude-3-5-sonnet-20240620", | |
"provider": "anthropic", | |
"apiKey": "", | |
"title": "Claude 3.5 Sonnet" | |
}, | |
{ | |
"title": "Llama 3.1 8B", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# taken from https://www.usefulids.com/resources/generate-ulid-in-bash | |
# Function to convert timestamp to ULID-compatible format | |
timestamp_to_ulid() { | |
local timestamp=$1 | |
# ULID timestamp is milliseconds since UNIX epoch | |
printf '%010X' $((timestamp * 1000)) | |
} |
OlderNewer