Skip to content

Instantly share code, notes, and snippets.

View dd5md's full-sized avatar

Mathias Davidheimann dd5md

View GitHub Profile
@dd5md
dd5md / Enable all macOS software updates.bash
Created November 15, 2022 09:38 — forked from talkingmoose/Enable all macOS software updates.bash
The /Library/Preferences/com.apple.SoftwareUpdate.plist seems impervious to being managed via configuration profile (at least on macOS Mojave). While not enforced management, add this script to a Jamf policy and run it on a routine basis such as once per week on scoped Macs.
#!/bin/bash
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticCheckEnabled -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticDownload -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist AutomaticallyInstallMacOSUpdates -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist ConfigDataInstall -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate.plist CriticalUpdateInstall -bool TRUE
/usr/bin/defaults write /Library/Preferences/com.apple.commerce.plist AutoUpdate -bool TRUE
exit 0
@dd5md
dd5md / PowerlineForTerminal.md
Created October 25, 2021 22:57 — forked from DucNgn/PowerlineForTerminal.md
Powerline style for terminal OSX

Installing and configuring Powerline-style command line tools for developers (OSX)

Intro:

For every developer, terminal is their weapon, so why don't you customize it to become a powerful, and a beautiful weapon?

Powerline style refers to a terminal style that helps developer to keep track of their workflow easily, allows them to have perfect visual on current directories and new changes. It is also git recognizable, and failure detector that will help your development process becomes more interact and much faster.

In this guideline, I will introduce you with 2 smart shells: Zsh and Fishshell. Both are perfect for the development jobs due to its rich of resources, and user-friendly.

Note:

@dd5md
dd5md / gist:13e71250b1ab0bdb4cacb643a3b12c75
Created March 22, 2019 13:00 — 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
gem install sass
sass-convert -R ./ -F sass -T scss && rm *.sass or
sass-convert -R ./ -F sass -T scss && find . -type f -name '*.sass' -delete
@dd5md
dd5md / sass-to-scss.sh
Created March 15, 2019 15:48 — forked from ryanburnette/sass-to-scss.sh
Convert all .scss to .sass in the current directory, or vice versa.
#!/usr/bin/env bash
for file in *.sass
do
sass-convert -F sass -T scss $file `echo $file | sed s/.sass/.scss/g`;
done
rm *.sass