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
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
<?php
/**
* Duplicate order functionality
*
* @author Jan Hocevar
* @category Admin
* @package WooCommerce/Admin
* @version 1.0.0
*/
View CODES.sh
#!/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.
View distanceinput.js
var distanceInput = document.getElementById("distance");
View vagrant_conf
# -*- 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"
View noble_conf
#!/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/;
You can’t perform that action at this time.