Skip to content

Instantly share code, notes, and snippets.

@skyrepprac
skyrepprac / gist:fe781b30e53f5e2aca99ff7e65013c37
Created July 12, 2017 06:16
Magento - Add Bundle Product Programmatically
<?php
require_once('includes/config.php');
require_once('app/Mage.php');
$storeID = 1;
$websiteIDs = array(1);
$cats = array(5);
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
@echo off
setlocal EnableDelayedExpansion
set RESFILE="searchResult.txt"
set /p NEEDLE="Enter the text you want to search: "
set LB=^&echo.
findstr /plnsc:"%NEEDLE%" *.php *.phtml *.xml *.css *.js *.sql *.html >> %RESFILE%.tmp
move "%RESFILE%.tmp" "%RESFILE%" > nul
exit
@skyrepprac
skyrepprac / sublime-text-scopes.md
Created August 4, 2017 21:21 — forked from J2TEAM/sublime-text-scopes.md
Sublime Text 2/3: Snippet scopes

Here is a list of scopes to use in Sublime Text 2/3 snippets -

ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure