Skip to content

Instantly share code, notes, and snippets.

View corbtastik's full-sized avatar
😀

corbs corbtastik

😀
  • MongoDB: Advisory Architect
  • Texas
View GitHub Profile
@corbtastik
corbtastik / optimize_images.sh
Created January 2, 2026 16:33
Blog Image Optimizer script
#!/bin/bash
# 1. Define the target width for your blog (e.g., 1600px)
WIDTH=1600
# 2. Loop through all HEIC files (case-insensitive)
for file in *.[hH][eE][iI][cC]; do
# Check if files actually exist to avoid errors
[ -e "$file" ] || continue
@corbtastik
corbtastik / mongodb-deployment.yaml
Created July 10, 2025 14:53
Basic MongoDB enterprise deployment for Podman Kind installs
apiVersion: v1
kind: Namespace
metadata:
name: mongodb
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongodb
namespace: mongodb
@corbtastik
corbtastik / kind-podman-tool.sh
Created July 10, 2025 14:52
Bash script to install kind on podman for MacOS
#!/bin/bash
set -e
# =========[ Configurable Environment Variables ]=========
PODMAN_MACHINE_NAME="${PODMAN_MACHINE_NAME:-podman-machine-default}"
CLUSTER_NAME="podman-kind"
KIND_CONFIG_FILE="kind-podman.yaml"
KIND_NODE_IMAGE="kindest/node:v1.29.1"
EXTRA_PORT_RANGE="${EXTRA_PORT_RANGE:-30000-30010}"
@corbtastik
corbtastik / _sprinkles.scss
Created March 11, 2023 22:10
Sprinkles syntax-highlighting colors for Yolo single-page theme.
// ----------------------------------------------------------------------------
// sprinkles light-mode syntax theme for: https://github.com/corbtastik/yolo
// ----------------------------------------------------------------------------
$light-syntax-comment-hashbang: #9e9e9e;
$light-syntax-comment-multiline: #9e9e9e;
$light-syntax-comment-preproc: #ec417a;
$light-syntax-comment-preprocfile: #9e9e9e;
$light-syntax-comment-single: #9e9e9e;
$light-syntax-comment-special: #9e9e9e;
$light-syntax-comment: #9e9e9e;
@corbtastik
corbtastik / _dracula.scss
Created March 11, 2023 21:04
Dracula syntax-highlighting colors for Yolo single-page theme.
// ----------------------------------------------------------------------------
// dracula light-mode syntax theme for: https://github.com/corbtastik/yolo
// ----------------------------------------------------------------------------
$light-syntax-comment-hashbang: #6272a4;
$light-syntax-comment-multiline: #6272a4;
$light-syntax-comment-preproc: #ff79c6;
$light-syntax-comment-preprocfile: #ff79c6;
$light-syntax-comment-single: #6272a4;
$light-syntax-comment-special: #6272a4;
$light-syntax-comment: #6272a4;
@corbtastik
corbtastik / _monokai.scss
Created March 11, 2023 21:02
Monokai syntax-highlighting colors for Yolo single-page theme.
// ----------------------------------------------------------------------------
// monokai light-mode syntax theme for: https://github.com/corbtastik/yolo
// ----------------------------------------------------------------------------
$light-syntax-comment-hashbang: #75715e;
$light-syntax-comment-multiline: #75715e;
$light-syntax-comment-preproc: #75715e;
$light-syntax-comment-preprocfile: #75715e;
$light-syntax-comment-single: #75715e;
$light-syntax-comment-special: #75715e;
$light-syntax-comment: #75715e;
@corbtastik
corbtastik / .bashrc
Created January 3, 2023 00:27
Corb's bashrc file
# -----------------------------------------------------------------------------
# corbs-bashrc:v1
# -----------------------------------------------------------------------------
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
@corbtastik
corbtastik / todos-multi-container.md
Last active May 11, 2022 19:11
A multi-container experiment with podman

Todo(s) Multi Container with Podman

An experiment running multiple Rootless containers in podman.

4 container application

Source Code

@corbtastik
corbtastik / minio.sh
Last active July 6, 2022 07:21
Bash script to configure, start and stop single node MinIO container instance on Docker
#!/bin/bash
# --------------------------------------------------------------------
# [init] Create run dir, env file if they don't exist, then source env
# --------------------------------------------------------------------
init() {
MINIO_CONTAINER_NAME=$1
MINIO_RUN_DIR=/data1/run/${MINIO_CONTAINER_NAME}
MINIO_DATA=${MINIO_RUN_DIR}/data
MINIO_CERTS=${MINIO_RUN_DIR}/certs
# create run dir for container instance
@corbtastik
corbtastik / diskyo.sh
Created April 6, 2021 19:44
cheap disk write test
#!/bin/bash
writeYo() {
X_00=`stat -tc %s .`
dd if=/dev/zero of=/tmp/diskyo-${X_00} bs=${X_00} count=100k conv=fdatasync,notrunc status=progress
X_02=$(( 2*$X_00 ))
dd if=/dev/zero of=/tmp/diskyo-${X_02} bs=${X_02} count=100k conv=fdatasync,notrunc status=progress
X_04=$(( 4*$X_00 ))
dd if=/dev/zero of=/tmp/diskyo-${X_04} bs=${X_04} count=100k conv=fdatasync,notrunc status=progress
X_06=$(( 6*$X_00 ))
dd if=/dev/zero of=/tmp/diskyo-${X_06} bs=${X_06} count=100k conv=fdatasync,notrunc status=progress