Skip to content

Instantly share code, notes, and snippets.

View LarsenClose's full-sized avatar

Larsen James Close LarsenClose

  • Denver, CO
View GitHub Profile
@LarsenClose
LarsenClose / raise_cycle_run.sh
Created March 19, 2023 01:31
linux-ui/ux-improvement
#!/usr/bin/env bash
# Dependency: sudo apt install wmctrl
# set custom shortcut: raise_cycle_run
# ~/.zmeta/bin/raise_cycle_run gnome-terminal-server "Gnome-terminal" (can vary check with wmctrl -x -l )
if [ $# -ne 2 ]; then
exit 1
fi
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@LarsenClose
LarsenClose / clouds-very.sh
Last active September 6, 2022 11:51
kinetic kudu psionic non-voodoo
#!/bin/bash
# Proxmox Ubuntu Cloud Image ${VARIENT}
# This script is designed to be run on the Proxmox host.
# Source
# https://www.yanboyang.com/clouldinit/
# and
# https://gist.github.com/chriswayg/43fbea910e024cbe608d7dcb12cb8466
# and
@LarsenClose
LarsenClose / HpQs.md
Last active June 8, 2021 18:28
HPotter Questions

Listing questions so as not to blank during next meeting

JsonServer

  • should we create extra .env enviornment variables for it's interlinking with LJordan
  • couldn't tell and didnt see anything still defaulting to 3306
  • Seeing a comment to move the assignement of the database to config.yml
@LarsenClose
LarsenClose / M1_homebrew_git.md
Last active February 8, 2021 02:19
M1 homebrew error about git

M1 MacAir BigSur 11.2 Febuary 7 2021

Every homebrew command resulted in a crash send prompt and the following or near to

Warning: git 2.30.0 is already installed and up-to-date.
To reinstall 2.30.0, run:
  brew reinstall git
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18:  4136 Killed: 9               "$GIT_EXECUTABLE" "$@"
/opt/homebrew/Library/Homebrew/cmd/update.sh: line 18:  4144 Killed: 9               "$GIT_EXECUTABLE" "$@"

*always smart first

sudo apt-get update && sudo apt-get upgrade

if you trust them

curl -sSL https://get.docker.com | sh

if you want to look at the script first

curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh sudo usermod -aG docker pi

@LarsenClose
LarsenClose / gist:ac61bdf08d149542349debbc7bc605e9
Last active February 3, 2021 17:55 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@LarsenClose
LarsenClose / .travis.yml
Last active January 30, 2021 21:26
HPotter: current .travis.yml build/config files for testing
# Disable sudo to speed up the build
sudo: false
# Set the build language to Python
language: python
# Install the codecov pip dependency
install:
- pip install codecov
- pip install coverage
@LarsenClose
LarsenClose / RapberryPi_HPotter.md
Last active February 6, 2021 12:26
HPotter Raspberry Pi Bootstrap and config

Requirements

Hardware

  • Raspberry Pi, anything would really work, for pi0 networking would need to be added and wifi isn't ideal on the pi0w but should work.
  • microSD card, 16-32gb very reasonably more than enough
  • Decent power cord, Raspberries are tough boards but not when it comes to inconsistent power supplies
  • Internet conection, ether hardwired preffered but wifi's also easy

Software