Skip to content

Instantly share code, notes, and snippets.

View freshyill's full-sized avatar
💭
😎 Cool

Chris Coleman freshyill

💭
😎 Cool
View GitHub Profile
@freshyill
freshyill / wp-config.php
Created November 27, 2015 06:09 — forked from MikeNGarrett/wp-config.php
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
// Explicitely setting url
define( 'WP_HOME', 'http://domain.com' );
define( 'WP_SITEURL', 'http://domain.com' );
// Set url to... whatever.
define( 'WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] );
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
# Named boxes, like this one, don't need a URL, since the are looked up
tynt.com, intellitxt.com, snap.com, kontera.com, AdGardener.com, apture.com, wibiya.com, doubleclick.net, getconnected.southwestwi-fi.com, d1.openx.org, meebo.com, addthis.com, serving-sys.com, po.st, cdn.taboolasyndication.com, exitjunction.com, doubleclick.net, googleadservices.com, sharethis.com, luminate.com, rts.pgmediaserve.com, cacheserve.eurogrand.com
$base-font-size: 16px;
$base-line-height: 1.5;
// this value may vary for each font
// unitless value relative to 1em
$cap-height: 0.68;
@mixin baseline($font-size, $scale: 2) {
@freshyill
freshyill / monitor.sh
Last active August 29, 2015 13:58 — forked from mheadd/monitor.sh
#!/usr/bin/env bash
#
# Check if MySQL is running and start it if it's not
UP=$(pgrep mysql | wc -l);
if [ "$UP" -ne 1 ];
then
echo "MySQL is down.";
mysql.server start
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the branch/status of the current git repository
# * the branch of the current subversion repository
# * the return value of the previous command
#
# USAGE:
@freshyill
freshyill / css-stats-ack.sh
Created September 28, 2012 20:34 — forked from pjkix/css-stats-ack.sh
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@freshyill
freshyill / 1140-extras.css
Created September 18, 2012 03:44 — forked from inky/1140-extras.css
Some additional rules for the 1140px CSS Grid System, to allow whitespace to the left of a column. (Not tested extensively…)
.onepush {
margin-left: 8.65%;
}
.twopush {
margin-left: 17.3%;
}
.threepush {
margin-left: 25.95%;