Skip to content

Instantly share code, notes, and snippets.

@hamidne
hamidne / import_db.md
Created September 16, 2019 02:26
import Data Base with SSH

import Data Base with SSH

scp ~/Downloads/Orders.sql root@MY_SSH_IP:/root/Orders.sql
ssh root@MY_SSH_IP
mysql -u root -p myshop < Orders.sql
@hamidne
hamidne / install_redis.md
Created September 16, 2019 02:25
Install Redis Centos 7

Install Redis on server Source

sudo yum install epel-release
sudo yum --enablerepo=remi install redis

Start Redis

sudo systemctl enable redis
sudo systemctl start redis
@hamidne
hamidne / 1. install_dependencies.md
Last active January 6, 2021 17:21
Install LEMP in centos 7

Install Dependencies

sudo yum install -y epel-release
sudo yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
sudo yum install -y yum-utils

sudo yum groupinstall -y 'Development Tools'
sudo yum install -y pcre perl pcre-devel zlib zlib-devel openssl openssl-devel
timestamp=$(date +%s);
number=$(shuf -i 1-9 -n 1);
case $number in
1) url="http://dl.irangfx.com/2019/AdobeExtensionManagerCCAll.zip" ;; # 123 MB
2) url="http://dl.irangfx.com/2018/Adobe.Photoshop.CC.14.2.1.Portable.x86.x64.rar" ;; # 524 MB
3) url="http://dl.irangfx.com/2019/Adobe.Photoshop.CC.20.0.2.30.Mac_irangfx.com.rar" ;; # 1.86 GB
4) url="http://dl.irangfx.com/2018/Adobe.Photoshop.CC.19.1.3.49649.Mac.part1.rar" ;; # 1.07 GB
5) url="http://dl.irangfx.com/2018/Adobe.Photoshop.CC.19.1.3.49649.x64.part2.rar" ;; # 1.86 GB
6) url="http://dl.irangfx.com/background/25-Free-Blurred-Backgrounds.zip" ;; # 207 MB