- wsl2 + ubuntu 22
- simple installation
- simple usage via command line
- full control over configuration
- cronjobs enabled
- default remote smtp relay for all mailings
- databases included: mysql (+phpmyadmin), postgresql, oraclesql
- shared php.ini configuration for all versions
# Instruction + template repo: https://github.com/FedericoPonzi/rust-ci | |
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*.*.*' |
#!/bin/bash | |
dir=/root/deadlocks | |
[ -d $dir ] || mkdir -p $dir | |
cd $dir || { echo "Could not cd to $dir"; exit 1; } | |
mysql -be 'show engine innodb status;' \ | |
| sed 's/\\n/\n/g' \ | |
| awk '/TRANSACTIONS/{flag=0}flag;/LATEST DETECTED DEADLOCK/{flag=1}' \ | |
> latest.txt |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
exec < /dev/tty |
<?php | |
require_once 'abstract.php'; | |
class Cmtickle_Demo_Shell_Tool extends Mage_Shell_Abstract | |
{ | |
private $_readConnection = null; | |
protected function _getReadConnection() | |
{ |
images/* | |
*.csv |
In example below I upgraded is_visible_on_front
and used_in_product_listing
from false
to true
for two attributes namely flavor
and unit_count
. These attributes are product attributes and refer to Mage_Catalog_Model_Product::ENTITY
or catalog_product
.
For update attribute params we are need the: entity id
of attribute, id
of attribute, field name
what we wont to change, new field value
and sort order
. Function what we will use is updateAttribute
from class Mage_Eav_Model_Entity_Setup
.
/* @var $installer Mage_Catalog_Model_Resource_Setup */
<?php | |
require_once 'abstract.php'; | |
class Mage_Shell_CheckImages extends Mage_Shell_Abstract | |
{ | |
const CATALOG_PRODUCT = '/catalog/product'; | |
const CACHE = '/cache/'; | |
public function run() |
If you are running a large project such as a website or ansible server you will want to test new features before pushing them into production then something like the following setup may work for you.
For this example imagine your url is mysite.ca and you want a development/staging site on a subdomain which is dev.mysite.ca
Create the website's domain and subdomain