Skip to content

Instantly share code, notes, and snippets.

View chaoticgeek's full-sized avatar

Brandon Cole chaoticgeek

View GitHub Profile

Keybase proof

I hereby claim:

  • I am chaoticgeek on github.
  • I am chaoticgeek (https://keybase.io/chaoticgeek) on keybase.
  • I have a public key ASCysUZ_Qsq-j34W6-h75Nc6_SVFcQPQ8xXRDyG8iD755Ao

To claim this, I am signing this object:

@chaoticgeek
chaoticgeek / LocalValetDriver.php
Created July 12, 2019 22:06 — forked from davidalger/LocalValetDriver.php
Valet+ driver for running Wordpress in a sub-directory of a Magento2 installation
<?php
/**
* Custom driver for Valet+ to support running Wordpress installation at /wp/
*
* @author David Alger
*/
class LocalValetDriver extends Magento2ValetDriver
{
/**
@chaoticgeek
chaoticgeek / keybase.md
Created February 17, 2017 03:28
keybase.md

Keybase proof

I hereby claim:

  • I am chaoticgeek on github.
  • I am chaoticgeek (https://keybase.io/chaoticgeek) on keybase.
  • I have a public key ASDe3fCiTc9VbHYbqTfsbC3k125JB0MOeIGOLReUNTZOggo

To claim this, I am signing this object:

@chaoticgeek
chaoticgeek / Update.php
Created August 19, 2016 13:32 — forked from colinmollenhour/Update.php
Improve Magento Layout Cache Efficiency
<?php
/**
* This rewrite modifies the caching behavior so that the layout cache key references a SHA1
* hash of the layout XML instead of the XML itself to avoid duplication. The layout XML must
* still be generated once for each layout key, but it will not be saved if the identical
* contents already exist, saving considerable cache backend storage.
*/
class Template_Core_Model_Layout_Update extends Mage_Core_Model_Layout_Update
{
@chaoticgeek
chaoticgeek / Notepad Bookmarklet
Created December 4, 2015 16:50
My notepad bookmarklet.
data:text/html,<title>Text Editor</title><link rel=icon href="data:image/x-icon;base64,R0lGODlhEAAQAPIAAAAAAABmhei+AP/RAAAAAAAAAAAAAAAAACH5BAlkAAQAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAAD6khEEUQhEBICIYQQEgIhQUAQQUAQBBEEQRAEQRAEQRAEBBEEQRAEgUAgEAgEAgRCIDAYDAaDwWAgEAQCBEIgMBgMBoPBYCAQBAIEQiAwGAQCgUAgIBAEAgRCIDAYBAIBAQEBAgIBAQQEAQEDAwMDAwMDAwICAQEEBAEBAwMDAwMDAwMCAgEBBAQBAQMDAwMDAwMDAgIBAQQEAQEDAwMDAwMDAwICAQEEBAEBAwMCAgICAgICAgEBBAQBAQMDAgICAgICAgIBAQQEAQEBAQEBAQEBAQEBAQEEBAEBAQEBAQECBAgQIECAAAQSAAAh+QQJZAAEACwAAAAAEAAQAAAD6khEEUQhEBICIYQQEgIhQUAQQUAQBBEEQRAEQRAEQRAEBBEEQRAEgUAgEAgEAgRCIDAYDAaDwWAgEAQCBEIgMBgMBoPBYCAQBAIEQiAwGAQCgUAgIBAEAgRCIDAYBAIBAQEBAgIBAQQEAQEDAwMDAwMDAwICAQEEBAEBAwMDAwMDAwMCAgEBBAQBAQMDAwMDAwMDAgIBAQQEAQEDAwMDAwMDAwICAQEEBAEBAwMCAgICAgICAgEBBAQBAQMDAgICAgICAgIBAQQEAQEBAQEBAQEBAQEBAQEEBAEBAQEBAQECBAgQIECAAAQSAAAh+QQJZAAEACwAAAAAEAAQAAAD6khEEUQhEBICIYQQEgIhQUAQQUAQBBEEQRAEQRAEQRAEBBEEQRAEgUAgEAgEAgRCIDAYDAaDwWAgEAQCBEIgMBgMBoPBYCAQBAIEQiAwGAQCgUAgIBAEAgRCIDAYBAIBAQEBAgIBAQQEAQEDAwMDAwMDAwICA

Frequently Asked Questions

These questions are often asked in #loseit. Only frequently asked things belong here.

  • Q: How do I lose weight?
    A: Eat less than you burn. That's it!

  • Q: Actually, the body is more complicated than that...
    A: 1) Not a question. 2) The body obeys the first law of thermodynamics, so if you put in less energy than you use, the remainder has to come from somewhere, which is exactly why fat exists. In these times of need (whether due to a long winter or due to passing on seconds), the body metabolizes fat reserves (among other things) to make up the deficit. All successful weight loss involves intentionally creating a deficit.

  • Q: How do I know how much I burn?