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 / .gitignore
Created November 22, 2011 19:44
ExpressionEngine 2.x .gitignore
# EE Project Specific #
# ------------------- #
# Configs
config_bootstrap.php
*/expressionengine/config/config.php
*/expressionengine/config/database.php
# User generated image content
*/images/avatars/*
/* Inline scroll pane for retail locator list */
var api = $('.scroll-pane').jScrollPane({
showArrows: true,
maintainPosition: false
}).data('jsp');
/* Where to buy retail locator. CSS Maps by Winston Wolf. */
$('#map-continents').cssMap({ 'size': '540',
'visibleList': true,
'loadingText': 'Loading world map ...',
@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
@choyer
choyer / apache-config.layout
Created February 21, 2013 20:31
DIYMacServer - Apache httpd compile config.layout. Compile using "./configure -enable-layout=DIYMacServer" Source: http://diymacserver.com/mamp/mountain-lion/compiling-apache/
<Layout DIYMacServer>
prefix: /usr/local/apache2
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: /etc/httpd
datadir: /Library/WebServer
@choyer
choyer / apr-config.layout
Created February 21, 2013 20:37
DIYMacServer - Apache APR compile config.layout. Add to "./srclib/apr/config.layout" & "./srclib/apr-util/config.layout" Source: http://diymacserver.com/mamp/mountain-lion/compiling-apache/
<Layout DIYMacServer>
prefix: /usr/local/apache2
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/libexec+
mandir: ${prefix}/share/man
sysconfdir: /etc/httpd
datadir: /Library/WebServer
@choyer
choyer / apache-configure
Created February 21, 2013 20:40
DIYMacServer - Apache httpd compile configure command
./configure -enable-layout=DIYMacServer \
-enable-mods-shared=all \
-with-ssl=/usr \
-with-mpm=prefork \
-disable-unique-id \
-enable-ssl \
-enable-dav \
-enable-cache \
-enable-proxy \
-enable-logio \
@choyer
choyer / config.rb
Created June 30, 2014 20:21
Backup 4.x Config File (Gitlab Backup)
# encoding: utf-8
##
# Backup v4.x Configuration
#
# Documentation: http://meskyanichi.github.io/backup
# Issue Tracker: https://github.com/meskyanichi/backup/issues
##
# Config Options