Skip to content

Instantly share code, notes, and snippets.

View theamnesic's full-sized avatar

Guillaume M. theamnesic

View GitHub Profile
When logged in, go to "Settings > Checkout > Checkout Language", click the "View and customize this translation" link.
A page with a url like this opens: "https://yourshop.myshopify.com/admin/settings/locales/[locale_id]".
copy [locale_id].
Go Back and choose "create a new one".
Open the Javascript console, paste this (change to your shop/locale_id first):
if ( ! function_exists( 'populate_roles' ) ) {
include_once( ABSPATH . '/wp-admin/includes/schema.php' );
}
populate_roles();
@theamnesic
theamnesic / Name Mangler advanced snippet
Created November 23, 2012 10:44 — forked from petermaurer/Name Mangler advanced snippet
Hardcore evil characters cleaner for Name Mangler (Regex alternative)
[findRegularExpression "[ÀàÁáÂâÃãÄäÅåĀāĂ㥹ǞǟǺǻ]", <name>, "a"]
[findRegularExpression "[ÆæǼǽ]", <name>, "ae"]
[findRegularExpression "[Ḃḃ]", <name>, "b"]
[findRegularExpression "[ĆćÇçČčĈĉĊċ]", <name>, "c"]
[findRegularExpression "[ḐḑĎďḊḋĐđÐðDZdzDŽdž]", <name>, "d"]
[findRegularExpression "[ÈèÉéĚěÊêËëĒēĔĕĘęĖėƷʒǮǯ]", <name>, "e"]
[findRegularExpression "[Ḟḟƒfffiflffifflſt]", <name>, "f"]
[findRegularExpression "[ǴǵĢģǦǧĜĝĞğĠġǤǥ]", <name>, "g"]
[findRegularExpression "[ĤĥĦħ]", <name>, "h"]
[findRegularExpression "[ÌìÍíÎîĨĩÏïĪīĬĭĮįİıIJij]", <name>, "i"]
@theamnesic
theamnesic / Name Mangler advanced snippet
Created November 22, 2012 18:19
Hardcore evil characters cleaner for Name Mangler (Advanced)
[find "À", <name>, "a" ]
[find "à", <name>, "a" ]
[find "Á", <name>, "a" ]
[find "á", <name>, "a" ]
[find "Â", <name>, "a" ]
[find "â", <name>, "a" ]
[find "Ã", <name>, "a" ]
[find "ã", <name>, "a" ]
[find "Ä", <name>, "a" ]
[find "ä", <name>, "a" ]
@theamnesic
theamnesic / sunnytize.php
Created July 12, 2011 13:12 — forked from sunny/sunnytize.php
WordPress plugin that removes evil characters in file names
<?php
/*
Plugin Name: Sunnytize
Plugin URI:
Description: A better file name sanitizer
Version: 1.0
Author: Sunny Ripert
Author URI: http://sunfox.org
*/