Skip to content

Instantly share code, notes, and snippets.

View rickrussell's full-sized avatar

Rick Russell rickrussell

  • Noneck Media
  • The Real NorCal
View GitHub Profile
@GeekTrainer
GeekTrainer / Dockerfile.sandbox
Last active March 8, 2026 22:51
Docker Sandbox setup for GitHub Copilot CLI — reusable template with pre-installed deps on ext4
# Base image for Copilot CLI sandbox
FROM docker/sandbox-templates:copilot
USER root
# CUSTOMIZE: Install system-level dependencies your project needs.
# Examples:
# Python/Flask:
# RUN apt-get update && apt-get install -y --no-install-recommends \
# python3-flask python3-sqlalchemy && rm -rf /var/lib/apt/lists/*
@LeoVS09
LeoVS09 / docker-sandbox.sh
Last active March 4, 2026 06:10
Launch Docker sandbox for claude code
#!/usr/bin/env bash
set -euo pipefail
# Host repo directory = current directory
REPO_DIR="$(pwd)"
CONTAINER_DIR="/workspace"
IMAGE="node:24"
# Optional: pass a command to run inside the container.
# If no command is provided, start an interactive shell.
@payloadartist
payloadartist / firefox.sh
Last active February 6, 2021 20:42
Enumerate sub-domains, then open them in Firefox automatically. Useful for taking a quick glance at target's assets, and make notes, while doing recon.
# ------Instructions---------
# Install (and configure) subfinder, assetfinder, and httprobe
# go get -v github.com/projectdiscovery/subfinder/cmd/subfinder && go get -v github.com/tomnomnom/httprobe && go get -v github.com/tomnomnom/assetfinder
# cat firefox.sh >> ~/.bashrc
# source ~/.bashrc
# Usage - subf_ff target.tld
# asset_ff target.tld
subf_ff () {
subfinder -d $1 -silent -t 100 | httprobe -c 50 | sort -u | while read line; do firefox $line; sleep 10; done
@davidpfarrell
davidpfarrell / bashit-backup.sh
Created November 5, 2019 18:44
Export Bash-It Components as a Series of 'Enable' Commands
#!/usr/bin/env bash
# Exports Bash-it components as a series of 'enable' commands.
# The output can be saved to a file and sourced as needed to re-enable components.
# A 'disable all' statement is present for each component, but commented by default.
source "${BASH_IT:?"variable not defined"}"/bash_it.sh
components=( alias plugin completion )
@mrichman
mrichman / osx_bootstrap.sh
Last active November 14, 2024 19:40
Bootstrap script for setting up a new OSX machine
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
#
# - Twitter (app store)
@aromig
aromig / robocopy_exclude_existing_files.cmd
Created September 28, 2016 14:47
Robocopy - Exclude Existing Files
robocopy c:\Sourcepath c:\Destpath /E /XC /XN /XO
:: /E makes Robocopy recursively copy subdirectories, including empty ones.
:: /XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those.
:: /XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those.
:: /XO excludes existing files older than the copy in the source directory. Robocopy normally overwrites those.
:: With the Changed, Older, and Newer classes excluded, Robocopy will exclude files existing in the destination directory.
@rickrussell
rickrussell / archlinux-virtualbox.sh
Created September 6, 2016 18:18 — forked from tonykevin/archlinux-virtualbox.sh
Virtualbox archlinux notes
# sudo /sbin/rcvboxdrv -h
# Unloading modules:
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH
# Solution
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4
@rickrussell
rickrussell / AWSRegionsAndAZs.md
Created August 16, 2016 22:21
List of AWS availability zones for each AWS region
AWS region code AWS region name Number of AZs AZ names
us-east-1 Virginia 4 us-east-1a, us-east-1b, us-east-1c, us-east-1e
us-west-1 N. California 2 us-west-1a, us-west-1b
us-west-2 Oregon 3 us-west-2a, us-west-2b, us-west-2c
eu-west-1 Ireland 3 eu-west-1a, eu-west-1b, eu-west-1c
eu-central-1 Frankfurt 2 eu-central-1a, eu-central-1b
ap-southeast-1 Singapore 2 ap-southeast-1a, ap-southeast-1b
ap-southeast-2 Sydney 2 ap-southeast-2a, ap-southeast-2b, ap-southeast-2c
ap-northeast-1 Tokyo 2 ap-northeast-1a, ap-nort
@rickrussell
rickrussell / raid_ephemeral.sh
Created March 18, 2016 17:27 — forked from joemiller/raid_ephemeral.sh
detect all ephemeral disks on EC2 then stripe together in a raid-0 vol mounted at /mnt
#!/bin/bash
#
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe
# mounted at /mnt. It should be run early on the first boot of the system.
#
# Beware, This script is NOT fully idempotent.
#
METADATA_URL_BASE="http://169.254.169.254/2012-01-12"