Skip to content

Instantly share code, notes, and snippets.

View vincentmilliken's full-sized avatar
💭
Currently actively looking for a new role.

Vincent Milliken vincentmilliken

💭
Currently actively looking for a new role.
View GitHub Profile
@vincentmilliken
vincentmilliken / gist:4335829
Created December 19, 2012 10:36
Small Wordpress snippet
just before the comment that says /* That's all, stop editing! Happy blogging. */
// Assuming WP is in the root folder, adjust if not
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content');
$domain = $_SERVER[HTTP_HOST];
@vincentmilliken
vincentmilliken / wp-config.php
Created December 23, 2012 15:39
My WP-config file
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@vincentmilliken
vincentmilliken / Gemfile
Created February 2, 2013 12:03
Sinatra Heroku App
source :rubygems
gem 'sinatra'
gem 'compass'
gem 'haml'
gem 'sass'
gem 'rake'
gem 'data_mapper'
gem 'dm-core'
gem 'dm-postgres-adapter', :group => :production
@vincentmilliken
vincentmilliken / Gemfile
Created February 2, 2013 13:42
Updated App files.
source :rubygems
source "http://rubygems.org"
gem 'bundler'
gem 'sinatra'
gem 'compass'
gem 'haml'
gem 'sass'
gem 'rake'
gem 'data_mapper'