Skip to content

Instantly share code, notes, and snippets.

View raybogman's full-sized avatar

Ray Bogman raybogman

  • Magento
  • Amsterdam
View GitHub Profile
#!/bin/bash
#Owner + Group dir
user="cdn01"
# Directory for the backup
dir1="/home/magento/domains/magento-speed.com/public_html/media"
dir2="/home/magento/domains/magento-speed.com/public_html/js"
dir3="/home/magento/domains/magento-speed.com/public_html/skin"
https://www.section.io/magento/magento2/
https://marketplace.magento.com/sectionio-metrics.html
############################################################
Make sure u got a running Magento 2 site.
############################################################
Linux:
wget -qO- https://get.docker.com/ | sh
curl -L "https://github.com/docker/compose/releases/download/1.13.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
############################################################
wget -qO- https://get.docker.com/ | sh
curl -L "https://github.com/docker/compose/releases/download/1.13.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
@raybogman
raybogman / random-giphy-bg.html
Created January 16, 2017 19:11 — forked from dmerand/random-giphy-bg.html
HTML Template for Random Animated Gif Background Using Giphy
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
$(function() {
var xhr = $.get("http://api.giphy.com/v1/gifs/random?api_key=dc6zaTOxFJmzC");
xhr.done(function(data) {
$('.gif-bg').css('background-image', 'url(' + data.data.image_url + ')');
});
@raybogman
raybogman / local.xml
Created September 1, 2016 14:01 — forked from jedgalbraith/local.xml
Magento disable logs and reports
<frontend>
<events>
<!-- logs -->
<controller_action_predispatch>
<observers><log><type>disabled</type></log></observers>
</controller_action_predispatch>
<controller_action_postdispatch>
<observers><log><type>disabled</type></log></observers>
</controller_action_postdispatch>
<customer_login>
Verifying that +raybogman is my blockchain ID. https://onename.com/raybogman
@raybogman
raybogman / memcached.php
Created December 11, 2015 20:19
Memcached viewer for PHP
<?php
/*
+----------------------------------------------------------------------+
| PHP Version 5 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2004 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.0 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
@raybogman
raybogman / PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
Last active August 29, 2015 14:26
PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
#!/bin/bash
# Patch apllying tool template
#
# THIS PATCH IS A TEMP FIX FOR THE SUPEE-6482 RELEASE [CURRENT PATCH WAS NOT UP TO DATE, MISSING DATA]
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@raybogman
raybogman / PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
Created August 5, 2015 09:04
PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
This file has been truncated, but you can view the full file.
diff -ruN app/code/core/Mage/Api/Model/Server/Adapter/Soap.php app/code/core/Mage/Api/Model/Server/Adapter/Soap.php
--- app/code/core/Mage/Api/Model/Server/Adapter/Soap.php 2015-06-26 10:53:38.000000000 +0200
+++ app/code/core/Mage/Api/Model/Server/Adapter/Soap.php 2015-08-03 12:35:02.000000000 +0200
@@ -233,9 +233,9 @@
: $urlModel->getUrl('*/*/*');
if ( $withAuth ) {
- $phpAuthUser = $this->getController()->getRequest()->getServer('PHP_AUTH_USER', false);
- $phpAuthPw = $this->getController()->getRequest()->getServer('PHP_AUTH_PW', false);
- $scheme = $this->getController()->getRequest()->getScheme();