Skip to content

Instantly share code, notes, and snippets.

View adamburvill's full-sized avatar

Adam Burvill adamburvill

View GitHub Profile
@adamburvill
adamburvill / basicOsx
Last active August 29, 2015 13:56 — forked from saetia/gist:1623487
Basic Mac OSX Setup
[Mensch font](http://robey.lag.net/2010/06/21/mensch-font.html),
[Source Code Pro](http://sourceforge.net/projects/sourcecodepro.adobe/files/),
[Webkit](http://webkit.org),
[Chrome](http://google.com/chrome),
[Firefox](http://firefox.com),
[Kaleidoscope](http://www.kaleidoscopeapp.com),
[iTerm](http://iterm2.com),
[Sublime Text](http://www.sublimetext.com/dev),
[Sequel Pro](http://nightly.sequelpro.com),
[Codekit](http://incident57.com/codekit/),
@adamburvill
adamburvill / ubuntucli.md
Last active August 29, 2015 13:57
Ubuntu CLI Useful Commands

For multiple screens via one bash interface (edit a file and restart a service without losing place in file)

 $ screen 

Output content of file to terminal

$ cat

Search a file for a keyword/regex

@adamburvill
adamburvill / magentotips.md
Last active August 29, 2015 13:57
Magento Useful Tips

Troubleshooting Data with Magento:

How to backup from bundles and get general product info:

Gets the Product ID of the selection

$_selectionID = $_selection->getProductId();

Loads the product model

@adamburvill
adamburvill / 0_reuse_code.js
Created March 27, 2014 18:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@adamburvill
adamburvill / git.md
Last active August 29, 2015 13:58
Useful Git Commands

Add all files to staging

    git add .

Check differences in file across commits

    git diff SHA-HASH FILENAME

Git UI

<!DOCTYPE html>
<html>
<head>
<!--
theme: Copycat
version: 1.9a (March 31, 2014)
from: adorablethemes.com
-->
@adamburvill
adamburvill / macshortcuts.md
Last active August 29, 2015 13:59
Mac Productivity Shortcuts

Mac Shortcuts

option + left/right arrow: moves cursor by word rather than character

Alfred Shortcuts

define: define word
define('WP_USE_THEMES', false);
require_once('/path/to/wordpress/directory/wp-load.php');
<?php
require_once "shop/app/Mage.php";
unmask(0);
Mage::app('default');
?>
<?php
$layout = Mage::app()->getLayout();
$layout->getUpdate()
->addHandle('default')
->load();
$layout->generateXml()
->generateBlocks();