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:02 (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 / 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
@mturch
mturch / logspeed.sh
Created August 11, 2022 02:21 — forked from mbierman/logspeed.sh
Log speedtest results on Firewalla
#!/bin/bash
# v 0.20
BASEDIR=$(dirname $0)
IFTTTKEY="$(cat $BASEDIR/IFTTT.data | grep IFTTTKEY| cut -f2 -d "=" )"
EVENT="FWspeedtest"
# set to false if you don't want to log speed to a google Spreadsheet
GoogleSpreadsheet=true
@mturch
mturch / install_speedtest.sh
Created August 11, 2022 02:21 — forked from mbierman/install_speedtest.sh
Install Speedtest for firewalla
#!/bin/bash
# 2.0
# https://gist.github.com/mbierman/9ac6a35622ee5a0c631ed6f6ad74b722
# 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 / README.md
Created July 14, 2022 02:48 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@mbierman
mbierman / addremotesyslog.sh
Last active January 5, 2025 22:59
Add a remote syslog server to Firewalla
#!/bin/bash
# v 2.1.0
syslog=/etc/rsyslog.d/09-externalserver.conf
# this logs notice and above. use *.* log everything.
filter=*.notice
server=192.168.0.19 # Change the server to the IP of your syslog server.
port=514
hostname=firewalla
valid=$(grep "$server:$port" $syslog 2>/dev/null)
@ruxi
ruxi / make_conda_env.sh
Created July 21, 2016 18:38
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