set server timezone to Asia/Tehran:
dpkg-reconfigure tzdata
update server:
#!/bin/bash | |
### Destination folder where backups are stored. | |
destination_root_path=/var/www/mysql_dump | |
date_dir=$(date +"%Y-%m-%d") | |
destination_dir=$destination_root_path/$date_dir | |
current_date=$(date +"%F") | |
### MySQL Configuration | |
db_host="localhost" |
## Start |
<script> | |
let map; | |
function initialize () { | |
const lat = 35.731671; | |
const lng = 51.380317; | |
const zoom = 17; | |
map = new google.maps.Map(document.getElementById('google_map'), { | |
center: {lat: lat, lng: lng}, | |
zoom: zoom, | |
mapTypeControl: false |
npm install --save-dev imagemin-webpack-plugin copy-webpack-plugin imagemin-mozjpeg | |
const { mix } = require('laravel-mix'); | |
const ImageminPlugin = require('imagemin-webpack-plugin').default; | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const imageminMozjpeg = require('imagemin-mozjpeg'); | |
mix.webpackConfig({ | |
plugins: [ |