This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://expressionengine.com/forums/viewthread/108855/">Link1</a> | | |
<a href="http://expressionengine.com/">Link2</a> | | |
<a href="http://expressionengine.comindex.php/?affiliate=newism&page=/forums/viewthread/108855/">Link 3</a> | |
<a href="http://expressionengine.com">Link4</a> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script type="text/javascript" charset="utf-8"> | |
eeregexp = new RegExp("^(http://(www\.)?expressionengine\.com)"); | |
affiliateregexp = new RegExp("affiliate"); | |
affiliate = "newism"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd ~/work | |
for dir in `find . -type d -maxdepth 1 -mindepth 1`; do cd $dir; git pull origin master; cd -; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
# Set up an new github repository | |
GITHUB_USERNAME="timkelty" | |
# from github instructions page after creating a repo | |
mkdir "$1" | |
cd "$1" | |
git init | |
touch README |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# File: exp_permissions.sh | |
# Description: Sets permssions on a ExpressionEngine 2 install | |
# | |
# Copyright 2010 George Ornbo (Shape Shed) | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] | |
RewriteRule ^(.*)$ /index.php?$1 [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Modifying the final CP Output | |
* | |
* This extension demonstrates how you can access and modify the final ExpressionEngine | |
* CP output. It is not a hack, but it is a new technique that to my knowledge has not | |
* been used before in an EE addon. | |
* | |
* This has not been road tested and its side effects are unknown, so use this at your own risk. |
OlderNewer