Skip to content

Instantly share code, notes, and snippets.

View sxalexander's full-sized avatar
🚌
Remotely working for clients

Sam Alexander sxalexander

🚌
Remotely working for clients
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sxalexander on github.
  • I am extendedplay (https://keybase.io/extendedplay) on keybase.
  • I have a public key ASAUFvOiinzoi5X9cf_2KzBBJsKKZoOLXg6dOqjVAEaUogo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/*****
* WordPress Bootstrap Example
*****/
// prevent remote execution
if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']) exit();
/** Load WordPress Bootstrap, relative to the script directory */
require_once( dirname( __FILE__ ) . '/../wp-load.php' );
#! /bin/sh
# DESCRIPTION Setup wildcard domains using dnsmasq so *.doc is automatically sent to a running boot2docker vm
# MAINTAINER sxalexander@gmail.com
# See:
# https://echo.co/blog/never-touch-your-local-etchosts-file-os-x-again
# https://gist.github.com/r10r/5108046
# http://passingcuriosity.com/2013/dnsmasq-dev-osx/
# check for homebrew
if ! command -v brew >/dev/null; then
@sxalexander
sxalexander / -
Last active August 29, 2015 14:16
$ magerun dev:setup:script:attribute catalog_product product_finish
<?php
$setup = new Mage_Catalog_Model_Resource_Setup('core_setup');
$attr = array (
'attribute_model' => NULL,
'backend' => NULL,
'type' => 'int',
http://rally-asu-superbowl.s3.amazonaws.com/ASU_Reaching_New_Heights_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/ASU_Partnering_for_Impact_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/ASU_MarsRover_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/ASU_Evolving_Education_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Partnering%20for%20Impact_hd.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Reaching%20New%20Heights%20in%20service_hd.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Evolving%20Through%20Education_hd.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Mars%20Rover_hd.webm
http://jsfiddle.net/b55Cz/9/
git checkout master; git clone git@switchyard.beanstalkapp.com:galois.git tmp; rm -rf .git; mv tmp/.git .git; rm -rf tmp; git reset --hard origin/master
https://gist.github.com/ce2eda8ad7ae450ee73a
<?php
/**
* Gets the current global post type if one is set
*/
function x_get_current_post_type() {
global $post, $typenow, $current_screen;
if( $post && $post->post_type )
$post_type = $post->post_type;
elseif( $typenow )