Skip to content

Instantly share code, notes, and snippets.

View bobbyshaw's full-sized avatar

Tom Robertshaw bobbyshaw

View GitHub Profile
@bobbyshaw
bobbyshaw / rename-images.sh
Created January 2, 2020 09:55
Rename files that have %20 instead of a space in them
#!/bin/bash
for x in ./*
do mv -- "$x" "${x//%20/ }"
done
@bobbyshaw
bobbyshaw / docker-compose.yml
Created August 14, 2017 11:53
Magento 2 Docker Non-Data Images setup
version: "2"
services:
varnish:
image: meanbee/magento2-varnish:latest
environment:
- VIRTUAL_HOST=magento2-data.docker
- VIRTUAL_PORT=80
- HTTPS_METHOD=noredirect
ports:
- 80
@bobbyshaw
bobbyshaw / docker-compose.yml
Created August 14, 2017 11:52
Magento 2 Docker Data Images
version: "2"
services:
varnish:
image: meanbee/magento2-varnish:latest
environment:
- VIRTUAL_HOST=magento2-data.docker
- VIRTUAL_PORT=80
- HTTPS_METHOD=noredirect
ports:
- 80

Keybase proof

I hereby claim:

  • I am bobbyshaw on github.
  • I am bobbyshaw (https://keybase.io/bobbyshaw) on keybase.
  • I have a public key whose fingerprint is EC92 A9E8 77AC 0372 77B0 BEF0 92CB 1A4D 3E6A 6DB1

To claim this, I am signing this object:

@bobbyshaw
bobbyshaw / service-worker-init.js
Last active December 22, 2019 13:09
Jekyll Service Worker - Cache First, Network Fallback
/**
* Manage service worker setup
*
* @constructor
*/
function ServiceWorkerSetup() {
this.init();
};
/**
@bobbyshaw
bobbyshaw / Navigation.php
Last active August 29, 2015 14:16
Remove Function For Customer Account Navigation Links in Magento
<?php
class Meanbee_Core_Block_Customer_Account_Navigation extends Mage_Customer_Block_Account_Navigation {
public function removeLink($name) {
if (isset($this->_links[$name])) {
unset($this->_links[$name]);
}
}
}