This file contains hidden or 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 | |
| # | |
| # Notify of Homebrew updates via Notification Center on Mac OS X | |
| # | |
| # Author: Chris Streeter http://www.chrisstreeter.com | |
| # Requires: terminal-notifier. Install with: | |
| # gem install terminal-notifier | |
| TERM_APP='/Applications/Terminal.app' | |
| BREW_EXEC='/usr/local/bin/brew' |
This file contains hidden or 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 | |
| # | |
| # Notify of Homebrew updates via Notification Center on Mac OS X | |
| # | |
| # Author: Chris Streeter http://www.chrisstreeter.com | |
| # Requires: terminal-notifier. Install with: | |
| # brew install terminal-notifier | |
| TERM_APP='/Applications/Terminal.app' | |
| BREW_EXEC='/usr/local/bin/brew' |
This file contains hidden or 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 | |
| # encode.sh | |
| # | |
| # Copyright (c) 2013 Don Melton | |
| # | |
| # This version published on June 7, 2013. | |
| # | |
| # Re-encode video files in a format suitable for playback on Apple TV, Roku 3, | |
| # iOS, OS X, etc. |
This file contains hidden or 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
| #requires -version 3 | |
| [CmdletBinding()] | |
| param ( | |
| [string] | |
| $Path | |
| ) | |
| function Get-MD5 { | |
| param ( | |
| [Parameter(Mandatory)] |
This file contains hidden or 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
| function Rename-Files { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Position = 0, Mandatory = $true)][String] $path, | |
| [Parameter(Position = 1)][String[]] $include = @('*.mp4', '*.flv'), | |
| [Parameter(Position = 2)][string] $configFile | |
| ) | |
| Clear-Host |
This file contains hidden or 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
| main() { | |
| sudo apt-get install zsh -y | |
| # Use colors, but only if connected to a terminal, and that terminal | |
| # supports them. | |
| if which tput >/dev/null 2>&1; then | |
| ncolors=$(tput colors) | |
| fi | |
| if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then | |
| RED="$(tput setaf 1)" |
This file contains hidden or 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
| export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| export ZSH=$HOME/.oh-my-zsh | |
| export SSH_KEY_PATH=~/.ssh/rsa_id | |
| export UPDATE_ZSH_DAYS=1 | |
| export DOTNET_CLI_TELEMETRY_OPTOUT=1 | |
| SH_THEME='random' | |
| HYPHEN_INSENSITIVE=true | |
| ENABLE_CORRECTION=false |
This file contains hidden or 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 the latest Docker and Docker Compose | |
| wget -O - https://gist.githubusercontent.com/wdullaer/f1af16bd7e970389bad3/raw/install.sh | bash | |
| # Set the Docker host to the Windows instance | |
| echo "export DOCKER_HOST='tcp://0.0.0.0:2375'" >> ~/.bashrc; source ~/.bashrc | |
| # Install needed packages | |
| sudo apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ |
This file contains hidden or 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
| -- based on: https://discussions.apple.com/message/23989931#23989931 | |
| property theSavedValues : {"Dashboard", "Launchpad", "Mission Control", "Schreibtisch"} -- change "Schreibtisch" to "Desktop" if not german etc. | |
| tell application "System Preferences" | |
| activate | |
| set current pane to pane id "com.apple.preference.expose" | |
| tell application "System Events" | |
| tell window "Mission Control" of process "System Preferences" | |
| click button "Aktive Ecken …" -- on english computer: "Hot Corners…" | |
| tell sheet 1 |
This file contains hidden or 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
| -- By Richard Kulesus, 2009. Released without license! | |
| -- Use this for whatever! | |
| -- I seriously despise code authors who copyright tiny bits of obvious code | |
| -- like it's some great treasure. This is small and simple, and if it saves | |
| -- the next guy some time and trouble coding applescript I'll feel good! | |
| -- | |
| -- Quickly change all the hot-corners to do what you want. | |
| -- Particularly useful for presentations and full-screen games. | |
| -- Customize the activity of each hot-corner with "all windows/application windows/dashboard/disable screen saver/none/show desktop/show spaces/sleep display/start screen saver" | |
| -- The MODIFIERS are the keys which can be used to supplement hot-corner activation. |