Skip to content

Instantly share code, notes, and snippets.

View metcalfc's full-sized avatar

Chad Metcalf metcalfc

View GitHub Profile
@metcalfc
metcalfc / # git - 2020-07-28_08-39-07.txt
Created July 28, 2020 15:43
git on Ubuntu 18.04.4 LTS - Homebrew build logs
Homebrew build logs for git on Ubuntu 18.04.4 LTS
Build date: 2020-07-28 08:39:07
#!/usr/bin/env python3
import math
image_sizes = [10, 100, 250, 500, 1000]
pull_counts = [10, 100, 1000, 10000, 100000, 1000000]
free_bw = 10 * 1024
cost_gb = 0.5
@metcalfc
metcalfc / ACNH.json
Created July 24, 2020 18:41
Kayla Cinnamon's Animal Crossings New Horizons Windows Terminal Colorscheme
{
"name": "ACHN",
"background": "#0a85d9",
"black": "#282a2e",
"blue": "#1f415c",
"brightBlack": "#373b41",
"brightBlue": "#8bcaff",
"brightCyan": "#4de0cc",
"brightGreen": "#bbd627",
"brightPurple": "#df9af4",
@metcalfc
metcalfc / update-sample.sh
Last active December 22, 2023 23:51
Update the Daytona Sample Index
#!/bin/bash
# https://blog.mdminhazulhaque.io/extract-patch-file-configmap
URL="https://raw.githubusercontent.com/daytonaio/samples-index/main/index.json"
# parse the arguments for --url
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-u|--url)
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@metcalfc
metcalfc / ziggy.ps1
Last active March 12, 2024 21:58
Get a version of Zig for Windows.
<#
.SYNOPSIS
This script downloads and installs the specified version of zig.
.DESCRIPTION
The script downloads the specified version of zig from https://ziglang.org, extracts it into the user's home directory, and optionally adds it to the PATH.
.PARAMETER version
The version of zig to download. If not specified, the script downloads the master version.