Skip to content

Instantly share code, notes, and snippets.

View scottstanfield's full-sized avatar
🚀
:wq

Scott Stanfield scottstanfield

🚀
:wq
  • Relativity Space
  • California
  • 09:54 (UTC -08:00)
View GitHub Profile
@scottstanfield
scottstanfield / socal-fires.md
Last active January 9, 2025 22:22
SoCal Fire Resources

Apps and Maps

[Watch Duty][1] Single best consumer resource: live fire cameras, evacuation information and aircraft info. I've been a paid member for a couple of years now to unlock some features and support their work. iOS, Android and Web

NASA and NOAA operate the VIIRS satellite fire sensors. Useful for tracking intensity and location of fire. I use these two:

@scottstanfield
scottstanfield / splash
Created March 11, 2024 17:56
cli splash screen for raspberry pi 5
#!/bin/bash
# vim:filetype=bash:
readonly _D="$(dirname "$(readlink -f "$0")")" && cd $_D
ansi_colors()
{
esc=""
black="$esc[30m"; red="$esc[31m"; green="$esc[32m"
@scottstanfield
scottstanfield / mount-var-to-new-drive.md
Created November 23, 2021 17:15
Boot from Grub and add new drive for /var partition

Grub boot linux manually (hold shift or ESC)

set pager=1
cat /boot/grub/grub.cfg

set root=(hd0,gpt2)
linux /boot/vmlinuz-5.4.0-45-generic root=UUID=0ad8dbaf-6d97-4836-8fa5-612c7e5021c6 ro recovery nomodeset
initrd /boot/initrd.img-5.4.0-45-generic
@scottstanfield
scottstanfield / mount-var-to-new-drive.md
Created November 23, 2021 17:13
Boot from Grub and add new drive for /var partition

Grub boot linux manually (hold shift or ESC)

set pager=1 cat /boot/grub/grub.cfg

set root=(hd0,gpt2) linux /boot/vmlinuz-5.4.0-45-generic root=UUID=0ad8dbaf-6d97-4836-8fa5-612c7e5021c6 ro recovery nomodeset initrd /boot/initrd.img-5.4.0-45-generic boot

@scottstanfield
scottstanfield / winget-terminal-linux.md
Created May 28, 2021 17:53
Setup Windows Terminal and Debian via WinGet on Windows 10
@scottstanfield
scottstanfield / mb1009.v6.txt
Created October 12, 2020 19:55
mb1006.v6 working brain
###
# MSFT Bonsai
# Copyright 2020 Microsoft
# This code is licensed under MIT license (see LICENSE for details)
# Moab Tutorial 1
# This introductory sample demonstrates how to teach a policy for
# controlling a ball on the plate of a "Moab" hardware device.
@scottstanfield
scottstanfield / tmux.install.sh
Created October 9, 2020 01:44
install tmux when you are not root
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# https://gist.github.com/ryin/3106801#file-tmux_local_install-sh
# Assumptions:
# sudo apt-get install -y build-essential libssl-dev automake
FROM alpine
RUN apk update
RUN apk add git openssh zsh nano vim less mandoc man-pages curl wget coreutils binutils findutils grep bash
RUN apk add build-base gcc openssl
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
WORKDIR /root
#RUN echo "source powerlevel10k/powerlevel10k.zsh-theme" > .zshrc
RUN curl -sfL git.io/antibody | sh -s - -b /usr/local/bin
RUN mkdir .zsh && git clone git://github.com/marlonrichert/zsh-snap .zsh/zsh-snap
From @KarlTheFog:
San Francisco glossary:
cold = 65 degrees or under
warm = 68 degrees or over
summer = October
winter = July
happiness = burrito
@scottstanfield
scottstanfield / raspi-config.txt
Created January 21, 2020 04:50 — forked from damoclark/raspi-config.txt
Simple Raspbian Configuration Tool. Add file to boot partition of SD Card and run single command after booting Raspbian.
#/bin/sh
#
# Don't change the following lines unless you know what you are doing
# They execute the config options starting with 'do_' below
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x -
#
############# INSTRUCTIONS ###########
#
# Change following options starting with 'do_' to suit your configuration