A script to fix EDID problems on external monitors in Mac OS.
-
Connect the problem monitor.
-
Download this script into your
/System/Library/Displays/Overrides(note: this file is only writeable by root, so some commands requiresudo).
| # http://stackoverflow.com/questions/7203515/how-to-locate-a-deleted-file-in-the-commit-history | |
| # Search for all instances of the file | |
| git log --all -- <path-to-file> | |
| # Display the contents of the file at SHA | |
| git show <SHA> -- <path-to-file> |
| set numbers_key_codes to {29, 18, 19, 20, 21, 23, 22, 26, 28, 25} | |
| set input to do shell script "pbpaste" | |
| if (input is not missing value) then | |
| tell application "System Events" | |
| repeat with char in the characters of input | |
| try | |
| set test to char as number | |
| key code numbers_key_codes's item (char + 1) |
| #!/bin/sh | |
| # 初期設定 | |
| WORK=$HOME/Builds/GCC | |
| PREFIX=$HOME/mingw | |
| export PATH="$HOME/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
| # ソースコードのダウンロード | |
| if [ ! -d $WORK/src ] ; then | |
| mkdir src |
| #!/usr/bin/env bash | |
| progname=$(basename $0) | |
| version="1.0 (2014-08-17)" | |
| step=2 | |
| function create_hash { | |
| openssl dgst -sha1 -binary <<< "$1" | xxd -p | |
| } |
| (function () { | |
| WebSocket.prototype._send = WebSocket.prototype.send; | |
| WebSocket.prototype.send = function (data) { | |
| this._send(data); | |
| this.addEventListener('message', function (msg) { | |
| console.log('>> ' + msg.data); | |
| }, false); | |
| this.send = function (data) { | |
| this._send(data); | |
| console.log("<< " + data); |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'twitter' | |
| require 'json' | |
| require 'faraday' | |
| # things you must configure | |
| PATH_TO_DROPBOX = "/Users/your_name/Dropbox/backup/tweets/" # you need to create this folder | |
| TWITTER_USER = "your_twitter_username" |
| " ftplugin/haskell.vim | |
| set tags=tags;/,codex.tags;/ | |
| " Disable haskell-vim omnifunc | |
| let g:haskellmode_completion_ghc = 0 | |
| autocmd FileType haskell setlocal omnifunc=necoghc#omnifunc | |
| autocmd FileType haskell nnoremap <buffer> <F1> :HdevtoolsType<CR> |
[2.7.10;@radtrack tests]$ py.test -v AnalyticCalc1_test.py
========================================== test session starts ===========================================
platform linux2 -- Python 2.7.10, pytest-2.8.3, py-1.4.30, pluggy-0.3.1 -- /home/vagrant/.pyenv/versions/2.7.10/bin/python
cachedir: ../.cache
rootdir: /home/vagrant/radtrack, inifile:
plugins: xdist-1.13.1
collected 1 items
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where: