This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Default values | |
verbose=0 | |
min_battery=20 | |
log() { | |
if [[ "$verbose" -gt 0 ]]; then | |
echo "$@" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###### Tasks Requiring Manual Checking ###### | |
# Review Installed Applications: | |
# Steps: Open Applications folder and Launchpad. | |
# Signs of Compromise: Unfamiliar or unexpected applications installed. | |
# Check App Permissions: | |
# Steps: System Preferences → Security & Privacy → Privacy tab. | |
# Signs of Compromise: Unusual permissions granted to unknown applications. | |
# Audit Browser Extensions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# Ensure Xcode and Command Line Tools are installed | |
xcode-select --install | |
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer | |
sudo xcodebuild -license | |
# Install Homebrew | |
which -s brew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
# Tap needed repos | |
brew tap homebrew/cask-fonts | |
# Install some stuff from Homebrew | |
brew install --cask \ | |
alex313031-thorium \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# stuff to do when setting up a fresh install of MacOS | |
set -o errexit -o nounset -o noclobber | |
[ -e /etc/pam.d/sudo_local ] || \ | |
echo 'auth sufficient pam_tid.so' \ | |
| sudo tee /etc/pam.d/sudo_local | |
softwareupdate --install-rosetta --agree-to-license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Test on https://github.com/yousseb/meld/releases/tag/osx-20 | |
### OSX - 3.21.0 (r4) Sonoma | |
### !!! Note: You need put the Meld.app r4 build to the /Applications path first. | |
#!/bin/zsh | |
#Fix libpng16.16.dylib not found | |
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib | |
#Fix libbrotlidec.1.dylib not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SCRIPTNAME=$(basename "$0") | |
function realpath () { | |
f=$@; | |
if [ -d "$f" ]; then | |
base=""; | |
dir="$f"; | |
else | |
base="/$(basename "$f")"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# git clone [email protected]:14e1a09abfdb9e762683c10cfeff3b4a.git gists-blog | |
# cd gists-blog | |
# ./generate.sh | |
# git add . | |
# git commit -m "updated links" | |
# git push | |
page_count=$(curl -I https://api.github.com/users/peteristhegreat/gists | grep link | grep -oP '(?<=\?page=)(\d+)(?=>; rel="last")') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# local | |
- ScreenBrush (https://imagestudiopro.com/screenbrush/) | |
- Presentify (https://presentifyapp.com/) | |
- PhotoScape X (http://x.photoscape.org/) | |
- Paint X (https://paint-x.com/) | |
- Skitch (https://evernote.com/intl/zh-tw/products/skitch) | |
- Seashore (https://github.com/robaho/seashore) | |
- CleanShot X (https://cleanshot.com/) | |
- Snipaste (https://www.snipaste.com/) | |
- GifCapture (https://github.com/onmyway133/GifCapture) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=SC2034 | |
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
# shellcheck disable=SC1090 source=commons.sh | |
source "$SCRIPT_DIR/commons.sh" | |
logger dependencies "$@" # register own debug tag & logger functions | |
#set -x # Uncomment to DEBUG |
NewerOlder