Skip to content

Instantly share code, notes, and snippets.

View spiritualhost's full-sized avatar

Ryan spiritualhost

View GitHub Profile
@gubatron
gubatron / rust projects default Makefile
Last active May 6, 2026 22:44
Makefile for rust projects
# Makefile
.PHONY: build release clean fmt check test install doc help tasks
default: help
# Default target (ensures formatting before building)
build: fmt ## Build the project in release mode (runs fmt first)
cargo build --release
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 17, 2026 18:25
set -e, -u, -o, -x pipefail explanation
@rikwatson
rikwatson / Script-Template.ps1
Created February 25, 2015 10:24
A basic powerShell script template showing best practices,
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>