Skip to content

Instantly share code, notes, and snippets.

View mturch's full-sized avatar
🏠
Working from home

mturchin mturch

🏠
Working from home
  • North Carolina
  • 04:07 (UTC -04:00)
View GitHub Profile
@mturch
mturch / InstallChocolateyPackages.ps1
Created April 30, 2024 15:35 — forked from ddieppa/InstallChocolateyPackages.ps1
My "must" chocolatey packages
function main {
Update-Windows-Configuration
Install-Utils
Install-Browsers
Install-Fonts
@mturch
mturch / make_conda_env.sh
Created October 21, 2023 15:56 — forked from ruxi/make_conda_env.sh
bash script to make basic conda env
%%writefile make_conda_env.sh
#!/usr/bin/env bash
# author: github.com/ruxi
# reproducibly create conda env
read -p "Create new conda env (y/n)?" CONT
if [ "$CONT" == "n" ]; then
echo "exit";
else
@mturch
mturch / top-brew-packages.txt
Created February 24, 2023 16:46 — forked from pmkay/top-brew-packages.txt
Top homebrew packages
node: Platform built on V8 to build network applications
git: Distributed revision control system
wget: Internet file retriever
yarn: JavaScript package manager
python3: Interpreted, interactive, object-oriented programming language
coreutils: GNU File, Shell, and Text utilities
pkg-config: Manage compile and link flags for libraries
chromedriver: Tool for automated testing of webapps across many browsers
awscli: Official Amazon AWS command-line interface
automake: Tool for generating GNU Standards-compliant Makefiles
@mturch
mturch / generate-ssh-key.sh
Created September 28, 2022 16:25 — forked from denisgolius/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa

Setting up Emporia Vue 2 whole-home power monitor with ESPHome

Changelog
  • 2022-07-30: add home assistant instructions & MQTT FAQ.
  • 2022-07-16: mention using UART adaptor's RTS pin, thanks to @PanicRide
  • 2022-07-02: mention mqtt is now supported
  • 2022-04-30: bump software version number to 2022.4.0
  • 2022-05-04: mention 64-bit ARM issues in FAQ
@mturch
mturch / install_FWUtilities.sh
Created August 11, 2022 02:25 — forked from mbierman/install_FWUtilities.sh
installation of various tools on Firewalla
#!/bin/bash
# v 1.01
# https://gist.githubusercontent.com/mbierman/ced69a41181637995f61323e7ac97cba/raw/214028a0430b5a54788ca727849aca84f0aed594/install_FWToys.sh
dir="/home/pi/.firewalla/config/post_main.d/"
app="install_sshpass.sh"
cd $dir
@mturch
mturch / install_iftop.sh
Created August 11, 2022 02:25 — forked from mbierman/install_iftop.sh
Install iftop on Firewalla
#!/bin/bash
# v2.0
# https://gist.github.com/mbierman/dd9fd1b89220af98dea74b2ab95a9f15
# Put this script in ~/.firewalla/config/post_main.d in order to resinstall after upgrades
log=/data/fw_reboot.txt
if ! [ -w $log ] ; then
sudo touch $log
sudo chmod a+w $log
@mturch
mturch / install_sshpass.sh
Created August 11, 2022 02:24 — forked from mbierman/install_sshpass.sh
install sshpass. on Firewalla
#!/bin/bash
# v 2.0
# https://gist.github.com/mbierman/362193a8cfaf14361945c27c48692d50
# Put this script in ~/.firewalla/config/post_main.d in order to resinstall after upgrades
log=/data/fw_reboot.txt
app=sshpass
edate=$(date +'%a %b %d %H:%M:%S %Z %Y')
@mturch
mturch / Pi Cron
Created August 11, 2022 02:24 — forked from mbierman/Pi Cron
Update pi-hole
9 3 * * mon,wed,fri root echo $(date) > /var/log/pihole_updateGravity.log && /usr/local/bin/pihole updateGravity | tee -a /var/log/pihole_updateGravity.log
@mturch
mturch / config_dnsmasq.sh
Created August 11, 2022 02:24 — forked from mbierman/config_dnsmasq.sh
config_dnsmasq.sh
#!/bin/bash
reboot=false
if [ ! -f ~/.firewalla/config/dnsmasq_local/staylocal ] ; then
echo -e "local=/lan/127.0.0.2\nlocal=/local/127.0.0.2\nlocal=/lan22/127.0.0.2\nlocal=/lan33/127.0.0.2\nlocal=/lan44/127.0.0.2\nlocal=/lan55/127.0.0.2\nlocal=/lan66/127.0.0.2\nlocal=/gst/127.0.0.2" > ~/.firewalla/config/dnsmasq_local/staylocal
echo dnsmasq: staylocal configured
reboot=true
else
echo dnsmasq: staylocal exists, nothing to do