Skip to content

Instantly share code, notes, and snippets.

@greenwellness
greenwellness / tools.md
Created January 22, 2014 13:15
Tools en tips
@greenwellness
greenwellness / 1-setup.md
Last active August 29, 2015 13:55
Installing spree e-commerce web application made with Ruby on Rails

Preamble

As always I did a half-arsed read of the instructions, just forked the github repository then made a lokal clone.

Ξ /srv/http → git clone git@github.com:greenwellness/spree.git

Cloning into 'spree'...
Warning: Permanently added the RSA host key for IP address 'xxx.xxx.xxx.xxx' to the list of known hosts.
remote: Reusing existing pack: 157334, done.
<?xml version="1.0" encoding="UTF-8"?>
<layout>
<!-- ############# GLOBAL LAYOUT UPDATES ############# -->
<default>
<!-- Remove unwanted blocks entirely
<remove name="right.poll"/>
<remove name="right.permanent.callout"/>
@greenwellness
greenwellness / README.asciidoc
Last active August 29, 2015 13:59
Redmine+ Setup

Redmine Pro Setup

Install RVM

Not a must per-se but damn handy nontheless and the point is we might want to have other applications which require a whole different Ruby version to run so I’ll thank myself later.

  1. Ensure your user shell runcommand file (~/.bashrc, ~/.zshrc) doesn’t contain any $PATH path which doesn’t include the $PATH variable itself (e.g. export PATH=/foo/bar:/baz/bara) and append the $PATH environment variable postfix (e.g. export PATH=/foo/bar:/baz/bara:$PATH).

  2. Pull the latest stable Ruby from rvm.io using \curl -sSL https://get.rvm.io | bash -s stable --ruby

  3. Source the rvm file to obtain access to the function using source /the/rvm/path/.rvm/scripts/rvm

@greenwellness
greenwellness / architecture.asciidoc
Created April 18, 2014 18:57
Win 8.x Overdrive PowerUserX

Intro

This is a summary of my current Windows build. Having a incomplete (GNU\Linux vs. Windows) toolset, it was a bit of a scavanger hunt trying to hunt down the best of the best. Of course I still knew some tricks from a few years back, but stuff hasn’t been standing completely still in Redmond so let’s catch up:

Essential

Face it, you won’t be able to make it without these tools:

<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="Magento">
<template name="help" value="Mage::helper('$helperName$')" description="Mage::helper" toReformat="false" toShortenFQNames="true">
<variable name="helperName" expression="" defaultValue="core" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS" value="false" />
@greenwellness
greenwellness / include.php
Created April 25, 2014 18:13
Mage standalone scripts
<?php
define('PATH_TO_MAGENTO', '/var/www/magento'); // update accordingly
require_once PATH_TO_MAGENTO.'/app/Mage.php';
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
// your php code here
?>

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex

@greenwellness
greenwellness / abstract.asciidoc
Last active August 29, 2015 14:01
Magento 1.7.0.2 ~> 1.8.1.0 pimped out

Steps

Prelude

Although I wouldn’t go as far as to say: "one shouldn’t use a Windows based setup", I’ve had some recent extensive experience in this field, and although amusing at first (trying to get the same (Arch)Linux 'feel') it ultimately failed in a few very essential things. I’ve done my best at it and invite anyone to try for themselves, and nice if you manage to do so properly, but I’ve kept running into some unsurpassable differences which made me flee back to a (Virtualbox) Arch guest: 1) Windows does not know http://pubs.opengroup.org/onlinepubs/009695399/functions/symlink.html [symbolic links as POSIX does] and many shell scripts (read: Bash or more portable 'sh' scripts mostely, btw I use zsh myself); 2) Windows does not know the concept of fork() as *nix systems do.

Both result in either the blatant failure of certain tools (the problem of PHPUnit related libraries relying on PHP ext-pcntl and it being exclusively for POSIX systems) o

@greenwellness
greenwellness / wagner.cson
Created May 22, 2014 00:27
A contrived setup of many different Magento composer packages
{
name: 'greenwellness/wellnessbon'
description: 'Definitie voor Green Wellness Wellnessbon.'
license: 'proprietary'
'minimum-stability': 'dev'
config: