This file contains hidden or 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
| Magento 1.x: | |
| Mage::getStoreConfig('carriers/shipper/active') | |
| Magento 2.x: | |
| protected $scopeConfig; | |
| public function __construct( | |
| \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig |
This file contains hidden or 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
| In simple_form_bootstrap.rb: | |
| b.use :tooltip # enable the tooltip example from below. | |
| I added these everywhere I saw word placeholder. | |
| Add simple_form_components.rb: | |
| module SimpleForm | |
| module Components |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="git_targets" basedir="." > | |
| <!-- =============================== | |
| Git tasks | |
| ==================================== --> | |
| <macrodef name = "git"> | |
| <attribute name = "command" /> | |
| <attribute name = "dir" default = "" /> | |
| <element name = "args" optional = "true" /> | |
| <sequential> |
This file contains hidden or 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
| /* Create an array with the values of all the checkboxes in a column */ | |
| $.fn.dataTableExt.afnSortData['dom-checkbox'] = function ( oSettings, iColumn ) | |
| { | |
| return $.map( oSettings.oApi._fnGetTrNodes(oSettings), function (tr, i) { | |
| return $('td:eq('+iColumn+') input', tr).prop('checked') ? '1' : '0'; | |
| } ); | |
| } | |
| $('.ratemgr-table').dataTable({ |
This file contains hidden or 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
| #Build new Image (uses dockerfile in cwd) | |
| docker build -t <your-desired-image-name> . | |
| #Run Docker Container | |
| docker run <image-name> | |
| #Stop Docker Container (if you have used --name you can then stop with actual alias name) | |
| docker stop <image-id> | |
| #Show running Docker Images |
This file contains hidden or 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
| [xdebug] | |
| xdebug.remote_enable=1 | |
| xdebug.remote_host=localhost | |
| xdebug.remote_port=9000 | |
| xdebug.remote_handler=dbgp |
This file contains hidden or 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 | |
| # Sets up a database with a magento2 installation. This assumes you are running from under your httpdocs/<release> location and have www.localhost.com in your /etc/hosts file | |
| # To run type : install_magento2 <dirname> <password> <release> | |
| # password is used for the datbase user and the magento admin password | |
| if [ $# -eq 0 ]; then | |
| echo "No arguments supplied" | |
| echo "Usage: `basename $0` <dirname> <password> <release>" | |
| echo "e.g install_magento2.sh mage2 password 21" | |
| exit 1 |
This file contains hidden or 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
| View number of threads open | |
| ps huH p <PID_OF_U_PROCESS> | wc -l | |
| e.g. do ps huH p 2016 | wc -l ; sleep 1; done |
This file contains hidden or 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
| 1.Download Java agent zip file from New Relic site | |
| 2. Under the tomcat base directory create a directory newrelic | |
| 3. Put the unzipped files in this directory | |
| 4. Update the license key in newrelic.yml with that shown in New Relic Admin | |
| 5. Update the App Name to something suitable | |
| 6. Update catalina.sh to have following: | |
| NR_JAR=/usr/local/tomcat/newrelic/newrelic.jar; export NR_JAR | |
| CATALINA_OPTS="$CATALINA_OPTS -javaagent:$NR_JAR"; export CATALINA_OPTS | |
| 7. Restart Tomcat – should now appear as a new application in New Relic |
This file contains hidden or 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
| XML Schema Resolution: | |
| bin/magento dev:urn-catalog:generate .idea/misc.xml | |
NewerOlder