wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update
sudo apt-get install -y mongodb-org
# Start MongoDB
sudo systemctl start mongod
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 | |
/** | |
* | |
* @author Raj KB<magepsycho@gmail.com> | |
* @website http://www.magepsycho.com | |
* @extension MassImporterPro: Pricing - http://www.magepsycho.com/mass-importer-pro-price-importer-regular-special-tier-group.html | |
*/ | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); |
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
#!/bin/bash | |
# | |
# Script to create MySQL db + user | |
# | |
# @author Raj KB <magepsycho@gmail.com> | |
# @website http://www.magepsycho.com | |
# @version 0.1.0 | |
################################################################################ |
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 | |
#################################################### | |
# EDIT | |
$rootMagentoDir = __DIR__; | |
#$csvFile = $rootMagentoDir . '/update_skus.csv'; | |
$logFile = $rootMagentoDir . '/var/log/cli-operation.log'; | |
$dryRun = 0; | |
#################################################### |
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
#!/usr/bin/env bash | |
# | |
# Script to install Magento2 | |
# | |
# @author Raj KB <magepsycho@gmail.com> | |
# @website http://www.magepsycho.com | |
# @version 0.1.0 | |
# UnComment it if bash is lower than 4.x version |
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
-- without using SET variable | |
SELECT t.id, | |
t.count, | |
(@running_total := @running_total + t.count) AS cumulative_sum | |
FROM TABLE t | |
JOIN (SELECT @running_total := 0) r | |
ORDER BY t.id | |
-- with SET variable | |
SET @running_total := 0; |
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 | |
/** | |
* @author Raj KB <magepsycho@gmail.com> | |
* @website https://www.magepsycho.com | |
* | |
*/ | |
$mageFilename = 'app/Mage.php'; | |
require_once $mageFilename; | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); |
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
vcl 4.0; | |
import std; | |
import directors; | |
backend server1 { | |
.host = "127.0.0.1"; # IP or Hostname of backend | |
.port = "8080"; # Port Apache or whatever is listening | |
.max_connections = 800; # That's it | |
.first_byte_timeout = 300s; # How long to wait before we receive a first byte from our backend? |
- OS: Ubuntu 16.04
- SCM: Bitbucket
- Remote Git Repo: git@bitbucket.org:magepsycho/magepsycho.git
- Deployment Branch:
master
- Web Root Dir: /var/www/magento2/magepsycho
- Git Repo Dir: /var/www/magento2/magepsycho.git
In remote server
NewerOlder