Skip to content

Instantly share code, notes, and snippets.

Jan Hočevar janhocevar

Block or report user

Report or block janhocevar

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
janhocevar / class-wc-admin-duplicate-order.php
Created Oct 2, 2017
Duplicate woocommerce order with custom meta data
View class-wc-admin-duplicate-order.php
* Duplicate order functionality
* @author Jan Hocevar
* @category Admin
* @package WooCommerce/Admin
* @version 1.0.0
# 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.
View distanceinput.js
var distanceInput = document.getElementById("distance");
View vagrant_conf
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config| = "noblemacmillan"
config.vm.hostname = "noblemacmillan.lan"
config.vm.box_url = "http://vagrant.dlabs.lan/" :private_network, ip: ""
config.ssh.username = "dlabs"
View noble_conf
#!/usr/bin/env bash
cd ~;
curl -sS | php && sudo mv composer.phar /usr/local/bin/composer && sudo chmod +x /usr/local/bin/composer;
bash < <(wget -O - && source ~/.profile;
cd /tmp/ && wget && sudo cp n98-magerun.phar /usr/local/bin/magerun && sudo chmod +x /usr/local/bin/magerun && cd /var/www/;
You can’t perform that action at this time.