Skip to content

Instantly share code, notes, and snippets.

@farmad
farmad / BIN_list.json
Last active April 18, 2019 17:45
List of Issuer Identification Numbers
{
"610433": "mellat",
"589905": "melli",
"170019": "melli",
"603799": "melli",
"603769": "saderat",
"639217": "keshavarzi",
"603770": "keshavarzi",
"589210": "sepah",
"627353": "tejarat",
@farmad
farmad / ftpbackup.sh
Created January 6, 2019 09:54
Backup MySQL Databases, Web server Files to a FTP Server Automatically
#!/bin/sh
# System + MySQL backup script
# Full backup day - Sun (rest of the day do incremental backup)
# Copyright (c) 2005-2006 nixCraft <http://www.cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# Automatically generated by http://bash.cyberciti.biz/backup/wizard-ftp-script.php
# ---------------------------------------------------------------------
### System Setup ###
DIRS="/home /etc /var/www"
BACKUP=/tmp/backup.$$
@farmad
farmad / db-backup.sh
Created January 6, 2019 09:48
Auto Backup MySQL Database to FTP Server using cURL
#!/bin/sh
# Set up all the variables
# https://www.danpros.com/2017/06/auto-backup-mysql-database-to-ftp-server-using-curl
# Database name
databases="db1 db2"
# Current date
date=$(date +"%Y-%m-%d")
@farmad
farmad / currencies.json
Created August 6, 2018 13:14
Currencies symbol & title
{
"AED": "United Arab Emirates Dirham",
"AFN": "Afghan Afghani",
"ALL": "Albanian Lek",
"AMD": "Armenian Dram",
"ANG": "Netherlands Antillean Guilder",
"AOA": "Angolan Kwanza",
"ARS": "Argentine Peso",
"AUD": "Australian Dollar",
"AWG": "Aruban Florin",