Skip to content

Instantly share code, notes, and snippets.

View mateusrevoredo's full-sized avatar

Mateus Revoredo mateusrevoredo

View GitHub Profile
@mateusrevoredo
mateusrevoredo / mateus.zsh-theme
Last active August 29, 2015 14:14
Fork of the oh-my-zsh "blinks" theme to add some of my personal preferences
#Modified version of: https://github.com/blinks zsh theme
function _prompt_char() {
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
echo "%{%F{blue}%}±%{%f%k%b%}"
else
echo ' '
fi
}
@mateusrevoredo
mateusrevoredo / Monokai Custom.icls
Last active August 29, 2015 14:14
Copy of the original PHPStorm Monokai color scheme with some minor adjustments
<scheme name="Monokai Custom" version="124" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="EDITOR_FONT_NAME" value="Source Code Pro" />
<colors>
<option name="ANNOTATIONS_COLOR" value="ffffff" />
<option name="CARET_COLOR" value="f8f8f0" />
<option name="CARET_ROW_COLOR" value="3e3d32" />
<option name="CONSOLE_BACKGROUND_KEY" value="272822" />
<option name="FILESTATUS_MODIFIED" value="6897bb" />
@mateusrevoredo
mateusrevoredo / install_vagrant_sudoers.sh
Last active August 29, 2015 14:19 — forked from joemaller/install_vagrant_sudoers.sh
Vagrant NFS Mount Without Password
#!/bin/bash
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password
# Updated to work with Vagrant 1.7.x
# Allow passwordless startup of Vagrant when using NFS.
# Based on https://gist.github.com/joemaller/6764700
# Stage updated sudoers in a temporary file for syntax checking
TMP=$(mktemp -t vagrant_sudoers)
cat /etc/sudoers > $TMP
@mateusrevoredo
mateusrevoredo / instructions.md
Last active October 3, 2015 01:31
OSX External Monitor RGB Support
  1. Download the patch-edid.rb script from the forums thread above and put it in your home directory.
  2. Restart your Mac.
  3. Before OS X starts up, hold down Command-R and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery.
  4. From the Utilities menu, select Terminal.
  5. At the prompt type exactly the following and then press Return: csrutil disable
  6. Terminal should display a message that SIP was disabled.
  7. From the  menu, select Restart.
  8. Connect only the external monitor(s) in question (I closed my MacBook lid, for example). The script will make override files for any connected monitor.
  9. Type “ruby patch-edid.rb” in Terminal.
  10. A new folder will be created in your home directory.