Skip to content

Instantly share code, notes, and snippets.

View jasonmccallister's full-sized avatar

Jason McCallister jasonmccallister

View GitHub Profile
@jasonmccallister
jasonmccallister / styles.less
Created June 10, 2014 22:13
My styles.less for my Atom editor. Uses Spacegray Dark for the UI and syntax theme.
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
<?php
craft()->path->getLicenseKeyPath()
@jasonmccallister
jasonmccallister / .zshrc
Last active August 29, 2015 14:13
Dotfiles
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Theme
ZSH_THEME="frisk"
# Custom plugins
plugins=(git ruby rails)
# User configuration
@jasonmccallister
jasonmccallister / .gitignore
Created February 3, 2015 05:25
Laravel 5 on Heroku Gitignore
/vendor
.env
gulpfile.js
package.json
@jasonmccallister
jasonmccallister / move-known-hosts.sh
Last active August 29, 2015 14:15
Remove known_hosts
mv ~/.ssh/known_hosts ~/.ssh/old_hosts && touch ~/.ssh/known_hosts
@jasonmccallister
jasonmccallister / composer.json
Created June 16, 2015 18:27
Composer configuration for building Craft websites on Heroku
{
"require": {
"php": "~5.6.9",
"ext-gd": "*",
"ext-iconv": "*",
"ext-imagick": "*",
"ext-mbstring": "*",
"ext-newrelic": "*",
"ext-redis": "*"
}
<?php
/**
* Register site routes.
*
* @return array
*/
public function registerSiteRoutes()
{
return array(
vmup()
{
cd ~/Homestead;
vagrant up;
cd ~/Code;
}
vmssh() {
cd ~/Homestead && vagrant ssh;
}
@jasonmccallister
jasonmccallister / config.rb
Created July 31, 2015 20:14
compass configuration
# INSTALLATION
# 1. gem install compass-notify
# 2. bower install
# 3. compass watch -e production // or developement
# Require any additional compass plugins here.
require 'compass-notify'
add_import_path "resources/bower_components/foundation/scss"
@jasonmccallister
jasonmccallister / nginx_app.conf
Created December 14, 2015 05:11
Craft Heroku Nginx Config
server {
http {
location / {
# try to serve file directly, fallback to rewrite
try_files $uri @rewriteapp;
}
location @rewriteapp {
# rewrite all to index.php
rewrite ^(.*)$ /index.php?p=$1 last;
}