Skip to content

Instantly share code, notes, and snippets.

View ryanirelan's full-sized avatar

Ryan Irelan ryanirelan

View GitHub Profile
require 'net/http'
require 'uri'
# /api/v1/:format/new
# /api/v1/:format/gists/:user
# /api/v1/:format/:gist_id
res = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/xml/new'),
{ 'files[file1.ab]' => 'CONTNETS',
'files[file2.ab]' => 'contents' })
<p>
<textarea name="{exp:form_helper:field_grabber field_name='tip-content'}" id="{field_name}" class="textarea" rows="{rows}" onclick="setFieldName(this.name)">
{exp:form_helper:field_parser parse=""}{tip-content}{/exp:form_helper:field_parser}
</textarea>
</p>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='tip-content' which='format'}" value="none" />
# RYAN'S BASH ALIASES
alias home='cd ~'
alias c='clear'
alias ..='cd ..'
alias pg='ping google.com'
alias proj='cd ~/projects'
alias airbag='cd ~/projects/airbag'
alias l='ls -lah'
alias incoming='cd ~/Desktop/Incoming'
# Run this at your site root to upgrade EE
# Paths assume your system folder is at site root
# http://expressionengine.com/docs/installation/update.html
#!/bin/bash
# location of the release
RELEASE_PATH="/Users/ryan/Desktop/Incoming/ExpressionEngine1.6.7"
echo "Enter the name of your system folder"