To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
<script type="text/javascript"> | |
var demoPartner = { 'host': '#HOST#', 'projectId': #PROJECT_ID#, 'template': '#TEMPLATE#' }; | |
</script> | |
<script src="https://cdn.myshoptet.com/usr/demo-partner.myshoptet.com/user/documents/addon_1/common.js" type="text/javascript"></script> | |
<link href="https://cdn.myshoptet.com/usr/demo-partner.myshoptet.com/user/documents/addon_1/#TEMPLATE#.css" rel="stylesheet" /> | |
<link href="https://cdn.myshoptet.com/usr/demo-partner.myshoptet.com/user/documents/addon_1/#HOST#/style.css?v=1" rel="stylesheet" /> |
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output | |
method="html" | |
version="4.01" | |
encoding="utf-8" | |
indent="yes" | |
omit-xml-declaration="yes" | |
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" /> | |
<xsl:template match="/"> |
= Hlavicka XML | |
<?xml-stylesheet href="https://beta.shoptet.cz/user/documents/katalog.xsl" type="text/xsl"?> | |
<SHOP> | |
= Tělo XML | |
<SHOPITEM> | |
<PRODUCT>#NAME#</PRODUCT> | |
<ITEM_ID>#CODE#</ITEM_ID> |
iconv -f utf8-mac -t utf8 |
// ==UserScript== | |
// @name Shoptet Admin Background Color | |
// @namespace https://www.shoptet.cz/ | |
// @version 0.1 | |
// @description change bg color for admin! | |
// @author brablc | |
// @match https://beta.shoptet.cz/admin/* | |
// ==/UserScript== | |
(function() { |
<div id="google-tr"> | |
<div id="google_translate_element"></div> | |
<script> | |
function googleTranslateElementInit() { | |
new google.translate.TranslateElement({ | |
pageLanguage: 'cs' | |
}, 'google_translate_element'); | |
} | |
</script> | |
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> |
if query == nil then | |
s = "users" | |
else | |
-- Remove part before @ | |
s = string.gsub( query, ".*@", "") | |
-- Remove dots from selector | |
s = string.gsub( s, "%.", "_") | |
end | |
d = "smtp.shoptet.cz" |
Moved to a repository: | |
https://github.com/brablc/postfix-tools |
-- ALTER TABLE roundcube.contacts ADD UNIQUE INDEX `uniq_email_user_id` (`email` (128), `user_id`); | |
SET @CrLf='\r\n'; | |
SET sql_mode='PIPES_AS_CONCAT'; | |
INSERT IGNORE roundcube.contacts | |
SELECT | |
NULL contact_id, | |
changed, | |
0 del, | |
IF(firstname,firstname || ' ','') || surname name, |