Skip to content

Instantly share code, notes, and snippets.

View JeffCost's full-sized avatar

Jeff C JeffCost

  • August Ash Inc.
View GitHub Profile
using System;
using System.Collections.Generic;
public class GameEvent
{
}
public class EventMessenger
{
@JeffCost
JeffCost / pre-commit
Last active December 30, 2015 06:48 — forked from grafikchaos/pre-commit
#!/usr/bin/env php
<?php
/**
*
* Setup
*
* chmod +x ~/path/to/file/phplint_drupal_pre-commit
* ln -s ~/path/to/file/phplint_drupal_pre-commit .git/hooks/pre-commit
*
/* Servo Recorder
The following commands are supported:
a records the current servo position for 5 seconds
b releases the servo to record the position
c plays back the recorded position for 5 seconds
d calibrates all angles from 0...180
The minimum and maximum pulse width will vary with different servo models.
#
# Run as root
# $ bash <(curl -s https://raw.github.com/gist/1631411)
#
# Update, upgrade and install development tools:
apt-get update
apt-get -y upgrade
apt-get -y install build-essential git-core curl \
libssl-dev \

A guide for installing modules with the MAGE installer

Magento Mage installer

Adjust permissions

Make the mage package executable

LOCAL ONLY

chmod 777 ./mage

A collection of Drupal snippets.

Home / Front Page Tricks

Remove the Default message on home page with our creating a post

<?php if(drupal_is_front_page()) {unset($page['content']['system_main']['default_message']);} ?>
@JeffCost
JeffCost / Git update-index --assume-unchanged.md
Created October 6, 2012 05:47 — forked from grafikchaos/Git update-index --assume-unchanged
Ignore uncommitted changes in tracked files with Git

IGNORE LOCAL CHANGES

Ignore local changes to repository files or directories git update-index --assume-unchanged path/to/file/or/directory

ALIAS

Or you can alias it in your ~/.gitconfig [alias] au = update-index --assume-unchanged

UN-IGNORE LOCAL CHANGES