Skip to content

Instantly share code, notes, and snippets.

View dd5md's full-sized avatar

Mathias Davidheimann dd5md

View GitHub Profile
@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
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 / 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
@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 / 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 / Disable-Ventura-Bloatware.sh
Created November 17, 2022 01:57 — forked from b0gdanw/Disable-Ventura-Bloatware.sh
Disable Ventura Bloatware
#!/bin/zsh
#Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
#Disabling unwanted services on macOS 13 Ventura
#Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
#Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
#To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist & disabled.501.plist and reboot
# user
@dd5md
dd5md / macOS_GitHub_SSH_GPG_setup.sh
Created November 17, 2022 10:18 — forked from ChristopherA/macOS_GitHub_SSH_GPG_setup.sh
macOS GitHub, SSH & GPG Setup
#!/usr/bin/env zsh
#===========================================================================
# * INFO
#
# macOS GitHub & GPG Setup - ./macOS_GitHub_SSH_GPG_setup.sh
#
# THIS IS A WORK IN PROGRESS, AND CURRENTLY IS ONLY FOR MACOS MONTEREY
# By Christopher Allen @ChristopherA https://github.com/christophera/
@dd5md
dd5md / osx-for-hackers.sh
Created July 20, 2023 03:54 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@dd5md
dd5md / disable.sh
Created July 23, 2023 13:59 — forked from b0gdanw/disable.sh
Disable bunch of #$!@ in Catalina
# Credit: pwnsdx https://gist.github.com/pwnsdx/1217727ca57de2dd2a372afdd7a0fc21; nebular https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3#gistcomment-3019082
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to disable SIP: Reboot to Recovery, in Terminal csrutil disable
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
# List disabled services: launchctl print-disabled user/501 |grep true & launchctl print-disabled system |grep true
@dd5md
dd5md / Brewfile
Created July 23, 2023 15:20 — forked from chadmayfield/Brewfile
My current Brewfile used when setting up my mac and also for updating it.
# Brewfile: Homebrew bundle file for macOS app download/install (on Apple Silicone or Linux)
#
# Author : Chad Mayfield ([email protected])
# License : GPLv3
#
# INFO: * Links and comments are added because I'm too old to remember where/what everything is :)
# * install.sh can be used, but it needs love, some of it doesn't work correctly
# * TODO items are in a list at the bottom of this file
#
# Installation steps;