This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
plumber = require('gulp-plumber'), | |
livereload = require('gulp-livereload'); | |
/* jshint task would be here */ | |
gulp.task('build-css', function() { | |
return gulp.src('public_html/content/themes/THEMENAME/assets/styling/sass/*.scss') | |
.pipe(plumber()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ROC Mondriaan Techiek & ICT", | |
"version": "1.0.0", | |
"description": "Build by Accent interactive", | |
"main": "content/themes", | |
"dependencies": { | |
"gulp": "^3.9.1" | |
}, | |
"devDependencies": { | |
"gulp": "^3.9.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PSR-0 autoloader | |
* @param string $className | |
* | |
* @see http://www.php-fig.org/psr/psr-0/ | |
*/ | |
function autoload($className) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable Magento 1.* API on Byte Hypernode | |
# Rewrite is piped through phpfpm, or the api.php is not run through PHP interpreter. | |
location /api { | |
rewrite ^/api/rest /api.php?type=rest last; | |
location ~ \.php$ { | |
echo_exec @phpfpm; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- A series of MySQL statements to run to prepare your Magento 1.9.* install for running on | |
-- your development environment; for instance, after downloading a DB from production. | |
-- Make sure to replace : | |
-- PREFIX_ | |
-- @base_url | |
-- Variables | |
SET @base_url = 'http://yourlocalurl.dev/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /api { | |
rewrite ^/api/rest /api.php?type=rest last; | |
rewrite ^/api/v2_soap /api.php?type=v2_soap last; | |
rewrite ^/api/soap /api.php?type=soap last; | |
location ~ \.php$ { | |
echo_exec @phpfpm; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- This query delelets all customers and orders from your | |
-- Magento 1.* install. Handy, if you have a bloated | |
-- Magento database and you need to do a bit | |
-- of cleaning up for use on a local machine. | |
-- | |
-- Replace PREFIX_ with your current Magento table prefix. | |
-- | |
-- USE AT OWN RISK. ALWAY BACKUP YOUR DATABASE FIRST. | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Return the remote IP address, also if you are behind a proxy server | |
*/ | |
function getIp() | |
{ | |
if (isset($_SERVER)) { | |
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############ Project specific rules ############### | |
# Exclude local.xml | |
data/web/public/app/etc/local.xml | |
# Ignore media, except .htaccess (Deny from all) and system files | |
data/web/public/media/* | |
!data/web/public/media/.htaccess | |
!data/web/public/media/customer | |
data/web/public/media/customer/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get available disk space | |
df -h | |
# Get the top 10 biggest folders in the current directory | |
du -h --max-depth=1 | sort -rh | head -10 | |
# Get the top 10 biggest folders in the current directory and their first child directories | |
du -h --max-depth=2 | sort -rh | head -10 | |
# Get sizes of all folders in the current directory |