Skip to content

Instantly share code, notes, and snippets.

@mtchavez
mtchavez / Preferences.sulime-settings
Last active December 14, 2015 15:08
Sublime Text 2 Preferences
{
"auto_complete_commit_on_tab": false,
"auto_indent": true,
"bold_folder_labels": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"find_selected_text": true,
"fold_buttons": true,
@mtchavez
mtchavez / skitch_v1_download.md
Last active December 14, 2015 19:48
Skitch V1 Download
@mtchavez
mtchavez / ruby_openssl.rb
Created March 20, 2013 19:09
Ruby OpenSSL fix OSX 10.8.x Ruby 1.9.3
# Install requirements from rvm requirements
# Make sure apple-gcc42 is installed
# Get RVM self contained readline and openssl
rvm pkg install readline openssl
# Install Ruby with compiler flags passed
rvm install 1.9.3 -C "--with-gcc=gcc-4.2,--with-readline-dir=$rvm_path/usr,--with-openssl-dir=$rvm_path/usr"
# Install updated cert and move into RVM openssl dir
@mtchavez
mtchavez / solarized-dark
Created September 28, 2013 19:42
Solarized (Dark) TM Theme
{ gutterSettings = {
foreground = '#839496';
background = '#073642';
divider = '#586e75';
selectionBackground = '#586e75';
selectionForeground = '#93a1a1';
};
settings = (
{ settings = {
foreground = '#839496';
@mtchavez
mtchavez / Preferences.sublime-settings
Last active December 24, 2015 04:39
Sublime Settings
{
"auto_complete_commit_on_tab": false,
"auto_indent": true,
"bold_folder_labels": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/Solarized Color Scheme/Solarized (dark).tmTheme",
"draw_white_space": "selection",
"find_selected_text": true,
"fold_buttons": true,
"folder_exclude_patterns":
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (dark)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@mtchavez
mtchavez / disk-check.json
Last active September 27, 2020 17:56
Consul Nagios Example Checks
{
"check": {
"id": "check-disk",
"name": "check-disk",
"script": "/usr/lib/nagios/plugins/check_disk -w 30% -c 5%",
"interval": "1m"
}
}
@mtchavez
mtchavez / pyenv-install-osx.sh
Last active November 8, 2021 02:48
Using pyenv to install python on OS X with homebrew dependencies
# 2.7
CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include -I/usr/local/opt/zlib/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib" \
PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" \
pyenv install -v 2.7.12 --force
# 3.x
CFLAGS="-I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib -L/usr/local/opt/sqlite/lib" \
pyenv install -v 3.3.6
@mtchavez
mtchavez / .eslintrc
Created November 9, 2016 00:04
.eslintrc
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true
},
"env": {
"browser": true,
"es6": true,