Skip to content

Instantly share code, notes, and snippets.

View janhocevar's full-sized avatar
🏠
Working from home

Jan Hočevar janhocevar

🏠
Working from home
  • Jan Hocevar s.p.
  • Slovenia Ljubljana
View GitHub Profile
@janhocevar
janhocevar / class-wc-admin-duplicate-order.php
Created October 2, 2017 21:58
Duplicate woocommerce order with custom meta data
<?php
/**
* Duplicate order functionality
*
* @author Jan Hocevar
* @category Admin
* @package WooCommerce/Admin
* @version 1.0.0
*/
#!/bin/bash
# BEGIN-NOTICE
# Copyright (C) 2014 Benjamin Porter
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
var distanceInput = document.getElementById("distance");
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "noblemacmillan"
config.vm.hostname = "noblemacmillan.lan"
config.vm.box_url = "http://vagrant.dlabs.lan/magento.box"
config.vm.network :private_network, ip: "10.10.0.15"
config.ssh.username = "dlabs"
#!/usr/bin/env bash
cd ~;
curl -sS https://getcomposer.org/installer | php && sudo mv composer.phar /usr/local/bin/composer && sudo chmod +x /usr/local/bin/composer;
bash < <(wget -O - https://raw.github.com/colinmollenhour/modman/master/modman-installer) && source ~/.profile;
cd /tmp/ && wget https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar && sudo cp n98-magerun.phar /usr/local/bin/magerun && sudo chmod +x /usr/local/bin/magerun && cd /var/www/;