Skip to content

Instantly share code, notes, and snippets.

ssh user@host.com -o PubkeyAuthentication=no
### In custom theme unset the TTL parameter
`app/design/frontend/Local/{CUSTOM_THEME}/Swissup_Navigationpro/layout/default.xml`
```xml
<?xml version="1.0" ?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="navpro.topnav">
<action method="unsetData">
@rommmka
rommmka / 23
Created September 12, 2023 09:27
https://github.com/magento/magento2/commit/ecf36e9badc01ec520cb6551f78688d5414d7fce
# connect to SSH
ssh -o IdentitiesOnly=yes username@hostname -p NN
# transfer file via terminal
scp -i ~/.ssh/key_file -P NN -o IdentitiesOnly=yes /home/user/file username@hostname:/home/target/dir
"swissuplabs": {
"type": "composer",
"url": "https://ci.swissuplabs.com/api/packages.json",
"exclude": ["swissup/module-testimonials", "swissup/module-breeze"],
"canonical": false
},
php -d memory_limit=-1 ./composer.phar update swissup/recaptcha --update-no-dev --dry-run
php -d memory_limit=-1 ./composer.phar update swissup/recaptcha --update-no-dev
@rommmka
rommmka / js
Last active October 9, 2023 07:05
For a quick-fix you can use 'Chrome extension source viewer' to download the plugin
as a zip, then unzip and open content.js, add the following code at the end, save,
then go to chrome plugins, enable developer mode at the top & click load unpacked,
select the plugin directory with the edited content.js:
==========
Object.defineProperty(Event.prototype, 'path', {
get: function() {
return this.composedPath();
}
});
wget https://www.adminer.org/latest-en.php
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://argentotheme.com/index.php/mainframe2017/helpmate_ticket/edit/*
// @grant none
// ==/UserScript==
php bin/magento config:set dev/css/merge_css_files 1
php bin/magento config:set dev/css/minify_files 1
php bin/magento config:set dev/js/merge_files 1
php bin/magento config:set dev/js/minify_files 1