I hereby claim:
- I am 10111dg on github.
- I am mondoshawan (https://keybase.io/mondoshawan) on keybase.
- I have a public key ASBLvLcQaC33mjcOo-fuVEJm1qKgJMoLWofWm2hwdo18vAo
To claim this, I am signing this object:
function my_remove_wp_seo_meta_box() { | |
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal'); | |
} | |
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100); |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.1 | |
sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm php7.1-intl php7.1-simplexml | |
sudo a2dismod php7.2 | |
sudo a2enmod php7.1 | |
sudo service apache2 restart | |
sudo update-alternatives --set php /usr/bin/php7.1 | |
sudo update-alternatives --set phar /usr/bin/phar7.1 | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1 |
find . -type f -exec chmod 644 {} \; // 644 permission for files | |
find . -type d -exec chmod 755 {} \; // 755 permission for directory | |
find ./var -type d -exec chmod 777 {} \; // 777 permission for var folder | |
find ./pub/media -type d -exec chmod 777 {} \; | |
find ./pub/static -type d -exec chmod 777 {} \; |
// You can set other product data with $product->setAttributeName() if you want to update more data | |
if ($product->getPrice() != $price) { | |
$product->setPrice($price) | |
->setStoreId(0) // this is needed because if you have multiple store views, each individual store view will get "Use default value" unchecked for multiple attributes - which causes issues. | |
->save(); | |
} |
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "7"; | |
APT::Periodic::Unattended-Upgrade "1"; |
DELETE FROM `catalog_category_entity` WHERE `entity_id` >= 3; | |
ALTER TABLE `catalog_category_entity` AUTO_INCREMENT = 3; |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
#save | |
docker save myusername/myproject:latest | gzip -c > myproject_img_bak05052018.tgz | |
#restore | |
gunzip -c myproject_img_bak05052018.tgz | docker load |
I hereby claim:
To claim this, I am signing this object:
{ | |
"hosting": { | |
"public": "public", | |
"ignore": [ | |
"firebase.json", | |
"**/.*", | |
"**/node_modules/**" | |
], | |
"headers": [ { | |
"source" : "**/*.@(eot|otf|ttf|ttc|woff|font.css)", |