Skip to content

Instantly share code, notes, and snippets.

View imagehat's full-sized avatar

Mike Kroll imagehat

  • Surprise Highway
  • Madison, WI
View GitHub Profile
#!/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
#
@davist11
davist11 / config.php
Last active December 13, 2015 18:18
ExpressionEngine: Don't show template debugging in AJAX requests
<?php
if(empty($_SERVER['HTTP_X_REQUESTED_WITH'])) {
$config['show_profiler'] = (ENV === 'local') ? 'y' : 'n';
$config['template_debugging'] = (ENV === 'local') ? 'y' : 'n';
}
@jtallant
jtallant / guard.md
Last active December 22, 2015 05:58
Guard Setup

Guard

Guard is a command line tool to easily handle events on file system modifications. http://guardgem.org

Github: https://github.com/guard/guard

Guard can be used for many different things related to file system modifications. Our most common use cases will be live-reload and stylesheet compilation.

Just installing guard alone won't give you all the features. You need to install guard as well as the plugins you want to use with it. Jeffrey Way has a great video on installing/using guard. guard-is-your-best-friend

@chrispage1
chrispage1 / Vite.php
Created July 16, 2023 17:04
Vite with WordPress
<?php
class Vite {
/**
* Flag to determine whether hot server is active.
* Calculated when Vite::initialise() is called.
*
* @var bool
*/