Skip to content

Instantly share code, notes, and snippets.

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
@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
@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 / 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

Test Speed Command

curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -

How to Open/Extract a RAR File in Linux

unrar x file.rar

How to List a RAR File in Linux

unrar l tecmint.rar

How to Create Rar File in Linux

rar a tecmint.rar tecmint

How to Recover Archives

Generate SSH Key

ssh-keygen -t rsa -C "your.email@example.com" -b 4096

Copy SSH Key and Use them

macOS:

pbcopy < ~/.ssh/id_rsa.pub

GNU/Linux (requires the xclip package):

  1. git rm -r --cached .
  2. git add .
  3. git commit -m ".gitignore is now working"
@hamidne
hamidne / RandomNames.bat
Created September 16, 2019 02:30
Random Rename Files
@ECHO OFF
ECHO Random Names
ECHO Written By: Hamid Nasr
ECHO HamidNE.ir
ECHO.
ECHO Start Random Rename ...
REM Randomly renames every file in a directory.
SETLOCAL EnableExtensions EnableDelayedExpansion
@hamidne
hamidne / cloudSettings
Last active September 4, 2020 15:05
VSCode Setting Sync
{"lastUpload":"2020-09-04T15:04:53.978Z","extensionVersion":"v3.4.3"}