Metadata IN
#!/bin/bash | |
# IMPORTANT: You will need to disable SIP aka Rootless in order to fully execute this script, you can reenable it after. | |
# 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 | |
# Agents to disable | |
TODISABLE=('com.apple.security.keychainsyncingoveridsproxy' 'com.apple.personad' 'com.apple.passd' 'com.apple.screensharing.MessagesAgent' 'com.apple.CommCenter-osx' 'com.apple.Maps.mapspushd' 'com.apple.Maps.pushdaemon' 'com.apple.photoanalysisd' 'com.apple.telephonyutilities.callservicesd' 'com.apple.AirPlayUIAgent' 'com.apple.AirPortBaseStationAgent' 'com.apple.CalendarAgent' 'com.apple.DictationIM' 'com.apple.iCloudUserNotifications' 'com.apple.familycircled' 'com.apple.familycontrols.useragent' 'com.apple.familynotificationd' 'com.apple.gamed' 'com.apple.icloud.findmydeviced.findmydevi |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
- Mac OSX 10+
- Administrator privileges
Follow these instructions to start using Zsh:
https://github.com/robbyrussell/oh-my-zsh
I'm using the Agnoster theme:
https://github.com/agnoster/agnoster-zsh-theme
You'll have to install the Patched Solarized Fonts:
Learning is cool.
Learning how to learn is a super power.
Lets look at the lense of learning a new language:
At the most tactical level, we would be studying the language itself. Reading a children's book in the target language, or making and studying flashcards.
At a higher level, we would be considering how we can best study the language. Flash cards? Reading children's books in the foreign language? Passive or active learning? etc.
#! /bin/bash | |
set -euo pipefail | |
# This script will remove automatic association for all networks not listed in the whitelist | |
# passed as the first argument. Passwords will NOT be removed from the Keychain. | |
# | |
# Alternatively, you can untick "Remember networks" in Network Preferences > Wi-Fi > Advanced, | |
# but then you won't be able to auto-join networks even temporarily, and you might already | |
# have a long list to go through. | |
# |
Brought to you by Headjack
FFmpeg is one of the most powerful tools for video transcoding and manipulation, but it's fairly complex and confusing to use. That's why I decided to create this cheat sheet which shows some of the most often used commands.
Let's start with some basics:
ffmpeg
calls the FFmpeg application in the command line window, could also be the full path to the FFmpeg binary or .exe file
-
OS version is in
system_profiler_SPSoftwareDataType.txt
; -
Utilities in
/bin
are listed inbin.txt
; -
Utilities in
/sbin
are listed insbin.txt
; -
Utilities in
/usr/bin
are listed inusr_bin.txt
; -
Utilities in
/usr/sbin
are listed inusr_sbin.txt
; -
Utilities in
/usr/libexec
are listed inusr_libexec.txt
; -
Default paths are
/usr/local/bin
# things-tagged_reminders freklov 04/02/2017 | |
# Copy Things to dos with a specific tag to a dedicated Reminders list | |
# | |
# ATTENTION | |
# if two reminders lists with the same name exist, it is not forseeable which list is choosen | |
# | |
property ThingsTagName : "At Work" -- this is the name of the Things tag |
by Joaquin Menchaca Last Update: Nov 2017
Updated versions maintained here:
This is my guide to getting essential tools for DevOps on Mac OS X.