Skip to content

Instantly share code, notes, and snippets.

View the-nerdery-dot-info's full-sized avatar

Michael Morrissey the-nerdery-dot-info

View GitHub Profile
@the-nerdery-dot-info
the-nerdery-dot-info / README.md
Created April 27, 2016 04:24 — forked from denji/README.md
Remove WebStorm; PhpStorm; PyCharm; RubyMine; AppCode; CLion, IntelliJ; 0xDBE10 settings and CLI-Links from Mac OSX

Quick uninstall JetBrains settings:

curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
<block type="cms/block" name="block_name">
<action method="setBlockId"><id>block_code</id></action>
</block>
{{block type="cms/block" block_id="block_code"}}
{{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}}
@the-nerdery-dot-info
the-nerdery-dot-info / gist:7af44a4ba622368fbb817d842fda57dc
Created June 13, 2016 23:15 — forked from g3d/gist:2709563
Clean Install – OS X 10.11 El Capitan
@the-nerdery-dot-info
the-nerdery-dot-info / cleanup.php
Created June 23, 2016 09:45 — forked from Zifius/cleanup.php
Shell script to remove unassigned simple products
<?php
/**
* This script is used to clean up unassigned simple products
*
* @author Alexander Turiak <[email protected]>
* @copyright Copyright (c) 2014 HexBrain (http://www.hexbrain.com)
*/
require_once 'abstract.php';
@the-nerdery-dot-info
the-nerdery-dot-info / a_readme.md
Created November 10, 2016 01:33 — forked from SplittyDev/a_readme.md
x86 bare metal protected mode itoa implementation

Freestanding x86 itoa implementation

For use in OS development.
Designed to be assembled with NASM, porting it over to other assemblers should be easy.

License

You are free to use, modify, distribute and sell this code.
A small message referring to this gist would be nice, though not required.

Important

This implementation uses a custom calling convention.

@the-nerdery-dot-info
the-nerdery-dot-info / 000-Cheat-Sheets.md
Created December 14, 2016 23:27 — forked from JoshuaEstes/000-Cheat-Sheets.md
Developer Cheat Sheets for bash, git, gpg, irssi, mutt, tmux, and vim. See my dotfiles repository for extra info.
@the-nerdery-dot-info
the-nerdery-dot-info / .bash_aliases-ubuntu
Created December 15, 2016 02:31 — forked from nitriques/.bash_aliases-ubuntu
My .bash_profile files. OS X, Windows (git bash) and Linux (Ubuntu/Cent OS)
alias l='ls -CF'
alias home='cd ~/'
alias apt-get='aptget'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias o='nautilus .'
alias c='xdg-open'
@the-nerdery-dot-info
the-nerdery-dot-info / mkWindow.py
Created December 22, 2016 05:44 — forked from atvKumar/mkWindow.py
Boiler Plate Code for Windows GUI under PyMel/Python/Maya
#-------------------------------------------------------------------------------
# Boiler Plate Code for Windows
# By : Kumaran
import pymel.core as pm
class UI(pm.uitypes.Window):
_TITLE = "mkWindow"
_LAYOUT = "mkLayout"
_DOCKCONTROL = "mkDockCtrl"
@the-nerdery-dot-info
the-nerdery-dot-info / woocommerce-ajax.php
Created January 29, 2017 15:37 — forked from qutek/woocommerce-ajax.php
[Wordpress] [Woocommerce] WooCommerce Ajax Handlers
<?php
/**
* WooCommerce Ajax Handlers
*
* Handles AJAX requests via wp_ajax hook (both admin and front-end events)
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/** Frontend AJAX events **************************************************/
@the-nerdery-dot-info
the-nerdery-dot-info / woocommerce-custom-cart-item-data.php
Created January 29, 2017 15:45 — forked from RadGH/woocommerce-custom-cart-item-data.php
Get and set custom cart item/product information prior to WooCommerce checkout, and carry those valus over to Order Item Metadata.
<?php
/*
Instructions:
1) Save data when adding to cart
When adding an item to your cart, use ld_woo_set_item_data. The best action for this to occur is
"woocommerce_add_to_cart". The first parameter for this action contains the "cart_item_key",
which is required for the function.