Skip to content

Instantly share code, notes, and snippets.

Kevin Pheasey kpheasey

Block or report user

Report or block kpheasey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kpheasey /
Last active Oct 6, 2015
RailsScript Infinite Scroll
window.App ||= {}
class App.GemgentoCategories extends App.Base
show: =>
new App.ProductGrid()
kpheasey /
Last active Oct 1, 2015
Magento Permissions
#Set Magento root directory permissions. Call using the following:
# curl -sL | sudo bash
if [ ! -f ./app/etc/local.xml ]; then
echo "-- ERROR"
echo "-- This doesn't look like a Magento install. Please make sure"
echo "-- that you are running this from the Magento main doc root dir"
kpheasey /
Last active Jan 31, 2018
DO Ubuntu 14.04 Droplet to ARK Server
# Updating Ubunut
echo "updating ubunutu... please be patient"
apt-get update && apt-get upgrade -y
echo "installing required packages... please be patient"
apt-get install htop lib32gcc1 -y
# Create steam user if needed
kpheasey / 0000_packages.config
Last active Sep 16, 2019 — forked from gcarrion-gfrmedia/0000_packages.config
AWS Elastic Beanstalk Ruby 2.2 Puma Sidekiq
View 0000_packages.config
git: []
htop: []
kpheasey / active_record_extension.rb
Last active Aug 29, 2015
SELECT SUM and SELECT SUM CASE ActiveRecord methods
View active_record_extension.rb
module ActiveRecordExtension
extend ActiveSupport::Concern
module ClassMethods
# Add a SELECT SUM() by CASE to query.
# @param cases [Hash(:attr, :val, :operand), Array(Hash(:attr, :val, :operator))]
# @param sum_field [Symbol, String]
You can’t perform that action at this time.