Skip to content

Instantly share code, notes, and snippets.

Ray Bogman raybogman

  • Magento
  • Amsterdam
Block or report user

Report or block raybogman

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 rsync.sh
#!/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"
View Section.io - Workshop [Magento 2]
https://www.section.io/magento/magento2/
https://marketplace.magento.com/sectionio-metrics.html
############################################################
Make sure u got a running Magento 2 site.
############################################################
View DevBox setup
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
############################################################
View Docker Install
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 Jan 16, 2017 — forked from dmerand/random-giphy-bg.html
HTML Template for Random Animated Gif Background Using Giphy
View random-giphy-bg.html
<!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 Sep 1, 2016 — forked from jedgalbraith/local.xml
Magento disable logs and reports
View local.xml
<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>
View onename
Verifying that +raybogman is my blockchain ID. https://onename.com/raybogman
@raybogman
raybogman / memcached.php
Created Dec 11, 2015
Memcached viewer for PHP
View memcached.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 Aug 29, 2015
PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
View 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 Aug 5, 2015
PATCH_SUPEE-6482_CE_1.9.2.0-1.9.2.1_v2-UPDATE.sh
View 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);
You can’t perform that action at this time.