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
kpheasey / infinite_scroll.js.coffee
Last active Oct 6, 2015
RailsScript Infinite Scroll
View infinite_scroll.js.coffee
window.App ||= {}
class App.GemgentoCategories extends App.Base
show: =>
new App.ProductGrid()
@infiniteScroll()
return
@kpheasey
kpheasey / magento_permissions.sh
Last active Oct 1, 2015
Magento Permissions
View magento_permissions.sh
#Set Magento root directory permissions. Call using the following:
# curl -sL https://goo.gl/b1NkHW | sudo bash
#!/bin/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"
exit
fi
@kpheasey
kpheasey / ark_instance.sh
Last active Jan 31, 2018
DO Ubuntu 14.04 Droplet to ARK Server
View ark_instance.sh
#!/bin/bash
# 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
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
packages:
yum:
git: []
htop: []
@kpheasey
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.