Skip to content

Instantly share code, notes, and snippets.

@choyer
choyer / upgrade_ee2.sh
Last active May 15, 2017 12:44 — forked from ryanirelan/Upgrade ExpressionEngine
ExpressionEngine 2.x Upgrade Script
# Run this at your site root to upgrade EE 2.x
# http://expressionengine.com/user_guide/installation/update.html
# Inspired by https://gist.github.com/51633
# WORK IN PROGRESS! USE WITH CAUTION!
#!/bin/bash
CHECK_FILE=index.php
echo "\033[44m[====> ExpressionEngine 2.x Upgrade Script by Carl Hoyer <====]\033[0;37m"
#!/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
#
@choyer
choyer / config_bootstrap.php
Created November 21, 2011 18:51 — forked from leevigraham/config_bootstrap.php
NSM Config Bootstrap with CP variable and change to 'mobi.' for mobile env (original created problems for pixolium.ca => m.)
<?php
/**
* Custom configuration bootsrtap file for ExpressionEngine
*
* Place config.php in your site root
* Add require(realpath(dirname(__FILE__) . '/../../config.php')); to the bottom of system/expressionengine/config/config.php
* Add require(realpath(dirname(__FILE__) . '/../../config.php')); to the bottom of system/expressionengine/config/database.php
* If you have moved your site root you'll need to update the require_once path
*
@choyer
choyer / bootstrapx.stateful-popover.js
Last active December 10, 2015 00:19 — forked from x3ro/stateful_popover.js
Fixed to address popover changes introduced in Bootstrap 2.2.2 as per changes in commit https://github.com/twitter/bootstrap/commit/32d425967a981838cb2e66701c0e814aeee8ab9c
!function ($) {
"use strict"; // jshint ;_;
/* POPOVER PUBLIC CLASS DEFINITION
* =============================== */
var StatefulPopover = function ( element, options ) {
this.contentWasSet = false