Skip to content

Instantly share code, notes, and snippets.

View mikestankavich's full-sized avatar

Mike Stankavich mikestankavich

View GitHub Profile
@mikestankavich
mikestankavich / bootstrap-claude-code-sandbox.sh
Last active July 18, 2025 14:44
Convenience script to bootstrap an ubuntu claude code sandbox
#!/usr/bin/env bash
set -euo pipefail
# --- Configurable defaults ---
USER="${1:-ubuntu}"
HOME_DIR=$(getent passwd "$USER" | cut -d: -f6 || true)
GO_VER="go1.24.5.linux-amd64"
NVM_VER="v0.40.3"
SAMBA_CONF="/etc/samba/smb.conf"
@mikestankavich
mikestankavich / install-gh-cli.sh
Last active July 19, 2025 21:51
Convenience script to install GitHub CLI on Ubuntu
#!/bin/bash
set -e
###############################################################################################
# This is a convenience script for installing the Github gh CLI. Invoke as follows: #
# curl -fsSL https://gist.github.com/yourusername/gist-hash/raw/install-gh-cli.sh | sudo bash #
# Author: Mike Stankavich https://github.com/mikestankavich [email protected] #
###############################################################################################
# Root check
@mikestankavich
mikestankavich / is_not_empty.yml
Created February 24, 2017 14:31
Ansible non-empty string conditional variants
---
# test scenario for task when conditional test for non-empty string
# example command line: ansible-playbook -i "localhost," is_not_empty.yml
- hosts: all
gather_facts: false
tasks:
# at this point foo is not defined, so we expect task to skip
@mikestankavich
mikestankavich / plv8.rb
Last active August 29, 2015 14:21 — forked from audreyt/plv8.rb
require 'formula'
class Plv8 < Formula
homepage 'http://code.google.com/p/plv8js/wiki/PLV8'
version '1.4.1'
url 'https://plv8js.googlecode.com/files/plv8-1.4.1.zip'
sha1 'ceb7579b1fae1c1fe795c03a23471fdf9c7c469e'
head 'https://code.google.com/p/plv8js/', :using => :git