Skip to content

Instantly share code, notes, and snippets.

View robertbcalhoun's full-sized avatar

Robert B. Calhoun robertbcalhoun

View GitHub Profile
@robertbcalhoun
robertbcalhoun / cliexample.cpp
Created April 9, 2026 17:58
How to parse a vector of enums with C++ / CLI11
// SPDX-License-Identifier: MIT
#include <CLI/CLI.hpp>
#include <iostream>
#include <vector>
#include <map>
#include <format>
// Example of how to parse a vector of enums with CLI11 (https://github.com/CLIUtils/CLI11/).
@robertbcalhoun
robertbcalhoun / mirror_site.sh
Created May 13, 2017 14:53 — forked from harperreed/mirror_site.sh
Mirror a site in s3
#!/bin/bash
#this will mirror a website, upload to s3, and make it publically available.
#install s3cmd. install wget. (i use homebrew).
#configure s3cmd (s3cmd --configure)
# run this by doing: mirror_site.sh www.example.org
wget --mirror -p --html-extension --convert-links -e robots=off -P . $1
s3cmd mb s3://$1