Skip to content

Instantly share code, notes, and snippets.

Nathaniel Rodrigues natrod

Block or report user

Report or block natrod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS.md

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
  4. Add a new shared folder
  5. On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM.
View Magento2-Sandbox-Script.php
<?php
/**
* @author Raj KB<magepsycho@gmail.com>
* @website http://www.magepsycho.com
* @blog http://www.blog.magepsycho.com/sandbox-script-quick-testing-magento2/
*/
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
@natrod
natrod / Apache vhost
Last active Apr 4, 2017
Basic Docker
View Apache vhost
<VirtualHost *:80>
ServerName web01-magentodev.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
<Directory "/var/www/html">
Options Indexes FollowSymLinks ExecCGI Includes
Order allow,deny
Allow from all
AllowOverride All
@natrod
natrod / Full project ignore
Created Feb 17, 2017
Git Ignore Magento 2
View Full project ignore
/.buildpath
/.cache
/.metadata
/.project
/.settings
atlassian*
/nbproject
/sitemap
/.idea
/.gitattributes
@natrod
natrod / Compoer-magento 2
Created Nov 24, 2016
magento 2 Composer
View Compoer-magento 2
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.1.2",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
@natrod
natrod / gist:3034c204745b1610a19d
Created Dec 30, 2015 — forked from klein0r/gist:5441524
Magento Tips, Tricks and Snippets
View gist:3034c204745b1610a19d
@natrod
natrod / apply-rules
Last active Aug 29, 2015
Catalog Rule script
View apply-rules
<?php
require_once 'app/Mage.php';
ini_set('display_errors', 1);
ini_set("memory_limit","11364M");
Mage::setIsDeveloperMode(true);
$time_start = microtime(true); //get start time
$premem=memory_get_usage(true); //get initial memory usage
@natrod
natrod / CLI Export profile run
Created Apr 15, 2015
Import/export related--- from variux
View CLI Export profile run
<?php
/***********************
* Import/Export Script to run Import/Export profile
* from command line or cron. Cleans entries from dataflow_batch_(import|export) table
***********************/
$mageconf = './app/etc/local.xml'; // Mage local.xml config
$mageapp = './app/Mage.php'; // Mage app location
$logfile = 'export_data.log'; // Import/Export log file
You can’t perform that action at this time.