Skip to content

Instantly share code, notes, and snippets.

View ryanlindsey's full-sized avatar
🏠
Working from home

Ryan Lindsey ryanlindsey

🏠
Working from home
  • California
View GitHub Profile
#!/bin/bash
# Default Variable Declarations
DEFAULT="default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
¯\_(ツ)_/¯
@ryanlindsey
ryanlindsey / nokogiri_mavericks.md
Last active August 29, 2015 14:04
Installing Nokogiri 1.6.1+ on Mavericks

If you're running Xcode 5.1, the command line tools don't work for nokogiri 1.6.1. You'll need to download the Late october 2013 tools from Apple. Once you do that run

$ sudo xcode-select -s /Library/Developer/CommandLineTools/

to set up your machine to use the Xcode 5.0.X command line tools, then run

$ gem install nokogiri

If you want to reset your command line tools to the Xcode.app version afterward run

if [ -d 0.0.1 ]; then echo 'PATH EXISTS'; else echo 'PATH DOES NOT EXIST'; fi
@ryanlindsey
ryanlindsey / gist:1332231
Created November 1, 2011 23:05
CodeIgniter .htaccess
# Remove index.php from CodeIgniter application
RewriteEngine on
RewriteCond $1 !^(index\.php|css|js|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
@ryanlindsey
ryanlindsey / gist:1332237
Created November 1, 2011 23:09
.htaccess
AddDefaultCharSet utf-8
DefaultLanguage en-US
# Activate rewrite engine
Options +FollowSymLinks
RewriteEngine on
# Redirect to wwww
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
@ryanlindsey
ryanlindsey / os_x_el_capitan_installer.md
Last active September 29, 2015 17:31
OS X El Capitan USB Installer Instructions
$ sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
@ryanlindsey
ryanlindsey / gist:1943509
Created February 29, 2012 18:53
Apache config for cross-domain fonts
Edit: /etc/apache2/apache2.conf
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
<FilesMatch "\.(ttf|otf|eot)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
@ryanlindsey
ryanlindsey / sublime_text_settings
Created June 28, 2012 16:33
Sublime Text 2 Settings
{
"auto_complete": false,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@ryanlindsey
ryanlindsey / install_ruby_1.9.3-p194
Created August 23, 2012 18:50
Install Ruby 1.9.3-p194 with rbenv
CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 1.9.3-p194