Skip to content

Instantly share code, notes, and snippets.

View itris's full-sized avatar
🎯
Focusing

Fred itris

🎯
Focusing
  • Netherlands
View GitHub Profile
@itris
itris / freshdesk-move-contact-details.js
Last active November 9, 2023 11:21
Freshdesk: Move Contact Details
// ==UserScript==
// @name Freshdesk: Move Contact Details
// @namespace https://indisandbox.freshdesk.com/
// @version 0.1
// @description Move a div with the id="requester-info" to the class="ticket-sidebar-sticky" on Freshdesk
// @match https://*.freshdesk.com/a/tickets/*
// @exclude https://*.freshdesk.com/a/tickets/filters/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=freshdesk.com
// @downloadURL https://gist.githubusercontent.com/itris/a76d90535dadd661b774c8ec758df892/raw/freshdesk-move-contact-details.js
// @updateURL https://gist.githubusercontent.com/itris/a76d90535dadd661b774c8ec758df892/raw/freshdesk-move-contact-details.js
@itris
itris / README.md
Created January 30, 2020 09:41 — forked from erikhansen/README.md
Magento 2 performance comparison after disabling unnecessary third-party extensions

Overview

I ran some tests to determine the speed impact of removing unnecessary third-party extensions, per this article: https://www.integer-net.com/make-magento-2-small-again/ The TL;DR is that pages loaded about 10% faster (with full_page and block_html disabled) with the unnecessary extensions removed.

Extensions I removed:

"replace": {
        "magento/module-dhl": "*",
        "magento/module-fedex": "*",
@itris
itris / 1_product_queries.sql
Created October 16, 2018 14:04 — forked from erikhansen/1_product_queries.sql
Magento 2 - Remove duplicate store view-specific product and category data
/*
* IMPORTANT: The queries below are written for Magento Enterprise. If you're going to run them on Magento Community, you need
* to replace all instances of ".row_id" with ".entity_id". See this for context: http://magento.stackexchange.com/questions/139740/magento-2-schema-changes-for-ee-catalog-staging
*
* When importing products in Magento 2, if you specify store view codes in the store_view_code column, product data will be set at
* both the global scope as well as the specific store view scope. This is not ideal because now you have duplicate
* data at two different scopes that shouldn't actually be duplicated. The scripts below clean up this data by finding
* data set at specific store view scopes and if it's an exact match to the data set at the global store view, then it
* deletes the data set at the specific store view scope.
*
// Less Grid mixin with fall back for < IE10
//
// @grid-columns: 12;
// @grid-gutter: 2rem;
//
// .grid();
// .grid-item-xs();
// .grid-item-s();
// .grid-item-m();
// .grid-item-l();
@itris
itris / flexbox.less
Created January 16, 2018 14:43 — forked from jayj/flexbox.less
CSS3 Flexbox - LESS Mixins
// --------------------------------------------------
// Flexbox LESS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
// flex or inline-flex
.flex-display(@display: flex) {
display: ~"-webkit-@{display}";
display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));