Reflg with relative date
git reflog --format='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)
#currently for drupal but can be easily be tested and improved for magento | |
apt-get install -y php-mbstring | |
apt-get install -y php-xmlwriter | |
apt-get install -y php-dom php-curl php-bz2 | |
apt-get install -y zip unzip php7-zip | |
apt-get install -y zip unzip | |
apt-get install -y php-xml php-tidy | |
sudo service apache2 restart |
sudo mysql_secure_installation | |
#its sometimes enough | |
some time usual approach of passwords reset does not work | |
https://superuser.com/a/949768/366778 | |
SELECT user, plugin FROM user; | |
UPDATE user SET plugin=""; | |
Reflg with relative date
git reflog --format='%C(auto)%h %<|(20)%gd %C(blue)%cr%C(reset) %gs (%s)
#part of selinux (security enhance linux) | |
#as root allows php or similar to download remote urls | |
setsebool -P httpd_can_network_connect 1 |
#!/usr/bin/env bash | |
#to find processes use netstat -ntlp | grep "3306" | |
portResponse=$(netstat -lnt | awk '$6 == "LISTEN" && $4 ~ ".3306"') | |
if [ -z "$portResponse" ] | |
then | |
echo "Port available for mysql, staring mysql" | |
service mysql start | |
else | |
echo "mysql already running" | |
fi |
* 98-magerun2 db:dump --add-time prefix | |
//do not complain about setup scripts | |
// Use n98-magerun2.phar dev:console | |
\Magento\Framework\App\ObjectManager::getInstance()->get('\Magento\Framework\Config\CacheInterface')->save(serialize(true),'db_is_up_to_date'); | |
https://marketplace.magento.com/customer/accessKeys/ | |
Public Key: b... | |
Private Key: 0.... |
<?php | |
umask(0); | |
require 'app/Mage.php'; | |
Mage::setIsDeveloperMode(true); | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
set_time_limit(0); | |
Mage::app(); |
#did not help but tried any ways | |
git config --global branch.autosetupmerge always | |
git config --global pusg.default current | |
#pull one might not be a real thing but putting it as makes sense | |
git config --global pull.default current | |
git config --global pull.default simple | |
git push -u origin HEAD | |
git config pull.default tracking |
#!/usr/bin/env bash | |
#inside docker container | |
HOST_IP=$(/sbin/ip route|awk '/default/ { print $3 }') | |
CONTAINER_IP=$(curl "$HOST_IP:8000" 2>/dev/null) | |
echo "container ip is $CONTAINER_IP" |