curl -s https://gist.githubusercontent.com/0m3r/02a416bea76ceedbc71f1063e7e0c26e/raw/e4e82030084a520987a3169991678315ec38d394/command | bash -s
curl -s https://gist.githubusercontent.com/0m3r/a39f76844c465ff1e67d36eaff70592a/raw/9439135646dda8e95fd418f07b283b0efe682d3c/configure | bash -s
php bin/magento cache:flush
php bin/magento config:set pagespeed/main/enable 1
php bin/magento config:set pagespeed/main/devmode 1
Fast deploy for all Swissup modules (for developer only)
Usage
(curl -s https://gist.githubusercontent.com/0m3r/954fc98bda36f90e4580e7eee641cc05/raw/b327e5644af562a403b26ff8bf44504192e20e65/install.bash > install.bash) && chmod +x install.bash && ./install.bash && rm -rf install.bash
Doesn't work without access to private SwissupLabs GitHub Repos
when you get this error:
bin/magento
An exception was raised while creating "Request"; no instance returned
Bug description and idea https://magento.stackexchange.com/questions/256953/an-exception-was-raised-while-creating-request-no-instance-returned
- Open your basecamp ticket
- open js console and run this js code in console
var text = jQuery('.formatted_content').eq(0).text();
var startr = "(^|<div>|<br>)\\s*";
var delimiterr = "(\\s| )*[:-]*(\\s| )*";
var endr = "\\s*($| |<\/div>|<br>)";
var rhost = new RegExp(startr + "(host|domain|server)+" + delimiterr + "([a-z0-9.]{3,})" + endr, "img");
Php workarounds for weary travelers composer/composer#8353
curl -s https://gist.githubusercontent.com/0m3r/16241092b5839345216dcdb1408baaae/raw/add_vaimo_patch.bash | sha1sum
910c77732701413018898d314dc073600833599e
curl -s https://gist.githubusercontent.com/0m3r/16241092b5839345216dcdb1408baaae/raw/add_vaimo_patch.bash | bash -s "vendor/module-package" "Path title #1" http://re.ro/path.diff
curl -s https://gist.githubusercontent.com/0m3r/16241092b5839345216dcdb1408baaae/raw/add_vaimo_patch.bash | bash -s "vendor/module-package" "Path title #1" "source":"http://re.po/1.diff","version":">2.3.1 <= 2.4","sha1":"@123"
How to Find Recently Modified Files/Folders in Linux
state ./vendor/swissup/module-pagespeed/composer.json
find ./vendor/swissup/module-pagespeed/ -type f -mtime -50 -ls
...
1706938 16 -rw-rw-rw- 1 www-data www-data 13931 Dec 12 13:59 ./vendor/swissup/module-pagespeed/Helper/Config.php
Download original
Usage examples :
curl -s https://gist.githubusercontent.com/0m3r/eff7ff873713e7e7223f08c1e7020f35/raw/9b1fe9263a7d64ad7c0869af04b6cf51cd5d319f/detector.sh | bash -s 2.2.0 magento/framework
curl -s https://gist.githubusercontent.com/0m3r/eff7ff873713e7e7223f08c1e7020f35/raw/9b1fe9263a7d64ad7c0869af04b6cf51cd5d319f/detector.sh --output detector.sh
cat detector.sh | bash -s 2.2.0,2.3.0 magento/framework,magento/module-store
cat detector.sh | bash -s magento/product-community-edition 2.2.0,2.3.0 magento/framework,magento/module-store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if test "$#" -eq 3; then | |
PACKAGE=${1} | |
VERSION=${2} | |
REQUIRE=${3} | |
else | |
PACKAGE="magento/product-community-edition" | |
VERSION=${1} | |
REQUIRE=${2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOMAIN=${1:-magento.local} | |
VERSION=${2:-2.3.1} | |
REPO=${3:-https://repo.magento.com/} | |
# REPO=${3:[email protected]:magento/magento2.git} | |
DIR=$DOMAIN | |
# Check availability of composer | |
hash composer 2>/dev/null || { echo >&2 "The script requires \"composer\" (https://getcomposer.org/download/)"; exit 1; } |
NewerOlder