- Direct download Magento extensions: http://freegento.com/ddl-magento-extension.php
- Delete all orders from database: http://www.codelogbook.com/remove-all-orders-from-magento-database/
- Magereverse http://www.magereverse.com/
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
| <?php | |
| /* | |
| 0346745008178 | |
| Should fail - checksum should be 9 | |
| 5060096384137 | |
| Should pass | |
| 5020650002112 |
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
| <?php | |
| /* From: http://www.php.net/manual/en/function.str-getcsv.php#88773 and http://www.php.net/manual/en/function.str-getcsv.php#91170 */ | |
| if(!function_exists('str_putcsv')) | |
| { | |
| function str_putcsv($input, $delimiter = ',', $enclosure = '"') | |
| { | |
| // Open a memory "file" for read/write... | |
| $fp = fopen('php://temp', 'r+'); | |
| // ... write the $input array to the "file" using fputcsv()... | |
| fputcsv($fp, $input, $delimiter, $enclosure); |
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
| <?php | |
| $attributeId = Mage::getResourceModel('eav/entity_attribute') | |
| ->getIdByCode('catalog_product', 'color'); |
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
| <?php | |
| /** | |
| * Optimized version of attribute source options model | |
| * | |
| * That allows to preload options once and reuse them instead of doing calls to db all the time | |
| * | |
| */ | |
| class EcomDev_Optimization_Model_Resource_Attribute_Source_Table | |
| extends Mage_Eav_Model_Entity_Attribute_Source_Table |
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
| <?php | |
| const STREAM_OPEN_FOR_INCLUDE = 128; | |
| final class HardCoreDebugLogger | |
| { | |
| public static function register(string $output = 'php://stdout') | |
| { | |
| register_tick_function(function () use ($output) { | |
| $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 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
| (function () { | |
| function loadZendeskChat(callback) { | |
| var zdscript = document.createElement('script'); | |
| zdscript.setAttribute('id','ze-snippet'); | |
| zdscript.src = 'https://static.zdassets.com/ekr/snippet.js?key=XXX-XXX-XXX-XXX'; | |
| (document.getElementsByTagName('body')[0]).appendChild(zdscript); | |
| window.zdonload = setInterval(function(){ | |
| if(typeof zE !== "undefined" && typeof zE.activate !== "undefined") { |
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
| # βββββββ ββββββββββββ ββββ βββββββ βββ βββββββββββ βββ ββββββββββ | |
| # βββββββββββββββββββββ βββββββββββββββββ βββββββββββ βββ βββββββββββ | |
| # ββββββββββββββ ββββββββββββββ ββββββ βββββββββ ββββββββββββββββ | |
| # ββββββββββββββ ββββββββββββββ βββββββ ββββββββββ βββββββββββββββ | |
| # βββ ββββββββββββββ βββ ββββββββββββ βββββββ ββββββββ βββ ββββββ | |
| # βββ ββββββββββββββ βββ βββββββ βββββ ββββββββ βββ ββββββ | |
| # | |
| # βββββββ βββ βββββββ ββββββ ββββββββββββ βββ ββββββ βββββββ ββββββββ | |
| # βββββββββββ βββββββββββββββββββββββββββββ βββββββββββββββββββββββββββ | |
| # βββββββββββ βββ βββββββββββ βββ βββ ββ βββββββββββββββββββββββββ |
Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.
Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1
- Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
- Select "Create new custom chat mode file"
If you often connect to your Linux server using VSCode, the "~/.vscode-server/" folder (and sometimes the ~/.cache/ folder too) can get very large because VSCode:
- Does NOT clean its download cache after installing extensions;
- Does NOT delete old extensions after updating them;
- Does NOT remove old VSCode servers after installing a new version.
If your server storage space is limited, you might consider cleaning "~/.vscode-server/" (and ~/.cache/) regularly using the bash script I wrote.
Simply run the following command:
curl -sL https://gist.githubusercontent.com/XDflight/5f3509eb84fc282b88059c909036f5bc/raw/b6b02d41c66c84d6332eb947c669dcd8973f393e/clean_vscode-server.sh | bash -s
OlderNewer