Skip to content

Instantly share code, notes, and snippets.

View dd5md's full-sized avatar

Mathias Davidheimann dd5md

View GitHub Profile
@dd5md
dd5md / setup.sh
Created July 23, 2023 15:21 — forked from maxackerman/setup.sh
bash srcipt to setup a new mac with homebrew and dev environment
#!/bin/sh
# run "sh setup.sh"
# BACKUP BEFORE WIPE:
# SSH keys
# Fonts
# Keychain passwords
# files outside dropbox: downloads, documents, photos, photobooth
# bash/zsh profile
#!/bin/sh
set -eux
hdiutil create -o /tmp/ventura -size 16384m -volname ventura -layout SPUD -fs HFS+J
hdiutil attach /tmp/ventura.dmg -noverify -mountpoint /Volumes/ventura
sudo /Applications/Install\ macOS\ Ventura\.app//Contents/Resources/createinstallmedia --volume /Volumes/vent\
ura --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Ventura
hdiutil convert /tmp/ventura.dmg -format UDTO -o ~/Desktop/ventura.cdr
mv ~/Desktop/ventura.cdr ~/Desktop/ventura.iso
@dd5md
dd5md / setup_mac.sh
Created July 29, 2023 03:54 — forked from gruckion/setup_mac.sh
Setup Mac script
#!/bin/sh
####################################################################
# Check for Homebrew, install if we don't have it
####################################################################
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
@dd5md
dd5md / .zshrc
Last active November 14, 2024 13:56
.zshrc
# PATHS
export ZSH=$HOME/.oh-my-zsh
# THEME
export ZSH_THEME='gnzh'
# ALIAS
alias cl='clear'
alias gcr='git clone'
alias cdh='cd ~/ && cl'
@dd5md
dd5md / install_fw_hsdualhat.sh
Created June 8, 2024 09:34
MMDVM HS_DUAL_HAT Installer
#!/bin/bash
# Configure Latest Version
FW_VERSION="v1.6.1"
# Firmware Filename
FW_FILENAME="mmdvm_hs_dual_hat_fw.bin"
# Download latest Firmware
echo "Downloading firmware..."