ubunto version 19 - php v 7.2
if your server repository is not in us set in in us
copy content of https://gist.github.com/mrmordi/2e2ef9507bbb75d09c419a61fa8ed981 to sources.list file. >
| #!/bin/bash | |
| SCHOOLS[0]="develop" | |
| SCHOOLS[1]="dinodanesh" | |
| SCHOOLS[2]="ettehad" | |
| SCHOOLS[3]="farhikhteg" | |
| SCHOOLS[4]="kaj" | |
| SCHOOLS[5]="momtazseda" | |
| SCHOOLS[6]="pardis" | |
| SCHOOLS[7]="rahiyansaa" |
| #!/bin/sh | |
| PROJECT_NAME="asas-server" | |
| # run this script inside public_html folder. | |
| # 1- clone asas-server from github [ssh key must exist] | |
| rm -rf ${PROJECT_NAME} | |
| git clone git@github.com:mabnagroup/${PROJECT_NAME}.git | |
| if [ $? -eq 0 ]; then |
ubunto version 19 - php v 7.2
if your server repository is not in us set in in us
copy content of https://gist.github.com/mrmordi/2e2ef9507bbb75d09c419a61fa8ed981 to sources.list file. >
| @foreach($users as $key => $user) | |
| <tr> | |
| <td>{{ $users->firstItem() + $key }}</td> | |
| <td>{{ $user->name }}</td> | |
| <td>{{ $user->email }}</td> | |
| </tr> | |
| @endforeach |
| // date to timestamp | |
| function dateToTimeStamp($date = '2020-10-01 17:38:15',$format ='Y-m-d H:i:s'){ | |
| $d = DateTime::createFromFormat($format,$date); | |
| return $d->getTimestamp(); | |
| } | |
| function timeStampToDate($timestamp=1601573895,$format ='Y-m-d H:i:s'){ | |
| return date($format, $timestamp); | |
| } |
| // add this line in config\sluggable.php after enable : | |
| //php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider | |
| //********* Becarfule error cluster : https://github.com/cviebrock/eloquent-sluggable/issues/427 | |
| 'method' => function($string, $separator = '-') { | |
| $_transliteration = array( | |
| '/ä|æ|ǽ/' => 'ae', | |
| '/ö|œ/' => 'oe', | |
| '/ü/' => 'ue', | |
| '/Ä/' => 'Ae', |
| https://medium.com/over-engineering/hands-on-with-material-components-for-android-dialogs-75c6d726f83a | |
| https://material.io/develop/android/components/text-fields | |
| The basic method of showing a dialog is like so:----------------------- | |
| // Note: A second constructor exists to pass in a theme res ID | |
| MaterialAlertDialogBuilder(context) | |
| // Add customization options here | |
| .show() | |
| Title and supporting text------------------- |
| // to avoid modal outside click hide add : | |
| data-toggle="modal" data-backdrop="static" data-keyboard="false" // to button | |
| <button data-target="#myModal" data-toggle="modal" data-backdrop="static" data-keyboard="false">Click Me</button> |
Y : year with 4 digits.
y : year with 2 digits.
M : month with 3 charachter of name.
m : month with 2 digits.
| sudo ufw status | |
| sudo systemctl start nginx | |
| sudo systemctl restart nginx | |
| sudo systemctl reload nginx | |
| sudo systemctl enable nginx | |
| sudo nginx -t | |
| sudo nginx -t && sudo service nginx reload |