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
# Add this to the "setup" activity: | |
apt_repository "custom-php5-oldstable" do | |
uri "http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu" | |
distribution node['lsb']['codename'] | |
components ["main"] | |
keyserver "keyserver.ubuntu.com" | |
key "E5267A6C" | |
action :nothing | |
subscribes :add, "template[/etc/sudoers]", :immediately |
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
sudo apt-get -y install samba | |
# Set a password for your user in Samba (use "vagrant" as password) | |
sudo smbpasswd -a vagrant | |
# Add this to /etc/samba/smb.conf | |
[www] | |
path = /var/www | |
available = yes | |
valid users = vagrant |
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
sudo su | |
apt-get update && apt-get install -y curl build-essential git libxml2-dev libxslt-dev libssl-dev | |
curl -L https://www.opscode.com/chef/install.sh | bash | |
/opt/chef/embedded/bin/gem install berkshelf --no-ri --no-rdoc | |
ln -s /opt/chef/embedded/bin/berks /usr/local/bin/berks |
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
# Select "Install Guest Additions" in the VirtualBox Gui | |
apt-get update | |
apt-get install build-essential linux-headers-$(uname -r) | |
mkdir /media/cdrom | |
mount /dev/cdrom1 /media/cdrom | |
cd /media/cdrom | |
./VirtualBoxAdditions.run |
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
truncate catalog_product_flat_cl; | |
truncate catalog_category_product_index_cl; | |
truncate catalog_category_product_cat_cl; | |
truncate catalog_category_flat_cl; | |
truncate catalogsearch_fulltext_cl; | |
truncate cataloginventory_stock_status_cl; | |
truncate catalog_product_flat_cl; | |
truncate catalog_product_index_price_cl; | |
truncate enterprise_url_rewrite_category_cl; | |
truncate enterprise_url_rewrite_product_cl; |
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
<?php | |
ini_set('display_errors', 'On'); | |
error_reporting(E_ALL); | |
set_include_path('lib' . PATH_SEPARATOR . get_include_path()); | |
spl_autoload_register('autoload'); | |
function autoload($class) |
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
<?php | |
$table = 'catalogsearch_fulltext_cl'; | |
// $table = 'catalog_product_flat_cl'; | |
// $table = 'catalog_category_flat_cl'; | |
$db = new mysqli('host', 'user', 'password', 'dbname'); | |
if ($db->connect_errno > 0) { | |
die('Unable to connect to database [' . $db->connect_error . ']'); | |
} |
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
TARGETFOLDER="/usr/local/bin" | |
sudo curl -sSo $TARGETFOLDER/modman https://raw.github.com/colinmollenhour/modman/master/modman && sudo chmod +x $TARGETFOLDER/modman | |
sudo curl -sSo $TARGETFOLDER/n98-magerun.phar https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar && sudo chmod +x $TARGETFOLDER/n98-magerun.phar | |
sudo curl -sSo $TARGETFOLDER/phpunit.phar https://phar.phpunit.de/phpunit.phar && sudo chmod +x $TARGETFOLDER/phpunit.phar | |
sudo curl -sSo $TARGETFOLDER/phploc.phar https://phar.phpunit.de/phploc.phar && sudo chmod +x $TARGETFOLDER/phploc.phar | |
sudo curl -sS https://getcomposer.org/installer | php -- --install-dir=$TARGETFOLDER |
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
<config> | |
<global> | |
<cache> | |
<backend>File</backend> | |
<!-- not "Files", "files", or "file" (Although this mentioned in app/etc/local.xml.additional. It will work because it will fallback to the file backend, but it will flood your error log... --> | |
</cache> | |
</global> | |
</config> |