Skip to content

Instantly share code, notes, and snippets.

View thor48's full-sized avatar

Dan Thorberg thor48

  • August Ash Inc.
View GitHub Profile
@thor48
thor48 / LAMP Install 2017
Last active April 18, 2017 14:15
Sierra & OSX - LAMP INSTALL
Apache - PHP Switcher!
https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions
SQL - DNSMASQ
https://getgrav.org/blog/macos-sierra-apache-mysql-vhost-apc
1 – Go to ‘shell’ folder in your Magento installation:
cd shell
2 – Execute reindex using this command:
php -f indexer.php reindexall
It is possible to get full list of Magento indexer commands using this command:
php -f indexer.php help
To get a list of available indexes, execute this command:
Locate This File: /app/code/core/Mage/Checkout/controllers/OnepageController.php
Go to Mage_Checkout_OnepageController::successAction()
Comment the line $session->clear();.
Now you can make one order and refresh the page as often as you like for styling the success page,
simply put through a test order and once you are on the success page just change the url
from /checkout/onepage/success/ to /checkout/onepage/failure/
@thor48
thor48 / 01-README.md
Last active August 29, 2015 14:27 — forked from petemcw/01-README.md
Mac OS X LEMP Configuration

Mac OS X LEMP Configuration

This Gist is a collection of configuration files that can be used to easily setup a Homebrew-based LEMP stack on Mac OS X.

Files in this repository are numbered and named for ordering purposes only. At the top of each file is a section of metadata that denote what component the file belongs to and the default name & location of the file. Feel free to implement it however you want.

Note: some configuration files have hard-coded paths to my user directory -- fix it for your setup

Nginx

# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@thor48
thor48 / gist:581d9f33ca9c773fbdde
Created August 27, 2014 13:10
SSL & NGINX - GoDaddy
nginx and Go Daddy SSL certificates
Generate the CSR:
1 openssl genrsa 2048 > yourhost.com.key
2 openssl req -new -key yourhost.com.key > yourhost.com.csr
Enter in whatever you want - you NEED the "Common Name" everything else is not really required for it to work.
01 Country Name (2 letter code) [AU]:US
02 State or Province Name (full name) [Some-State]:.
03 Locality Name (eg, city) []:.
04 Organization Name (eg, company) [Internet Widgits Pty Ltd]:Something Here
05 Organizational Unit Name (eg, section) []:.
@thor48
thor48 / NGINX and Wordpress wp-content folder
Created April 28, 2014 13:12
Wordpress NGINX user for wp-content folder
chown -R www-data:www-data wp-content
@thor48
thor48 / SQL Query find and replace
Created April 25, 2014 14:29
SQL find and replace Query
UPDATE `wp_posts`
SET `post_content` = replace(post_content, '/testing/', '/')
WHERE `post_content` LIKE '%/testing/%'
In this example we find any text named '/testing/' and replace it with '/' within table wp_posts in column post_content

A guide for installing modules with the MAGE installer

Magento Mage installer

Adjust permissions

Make the mage package executable

LOCAL ONLY

chmod 777 ./mage

@thor48
thor48 / HOTFIX GIT FLOW
Last active April 28, 2020 16:00
HOTFIX GIT FLOW
Make sure your in develop
git flow hotfix start [Release Number]
git add -A
git commit *** Commit the change and give description
git flow hotfix finish [Release Number] *** Be sure to label Tags
git push *** When you push it will push to both branches that were setup in git flow init
git push --tags *** These will appear in the Releases link on GitHub