Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
| # Author: M. Dutt ([email protected]) | |
| # Date: 20/11/2023 | |
| # Purpose: Correct file and directory permissions of Laravel project. | |
| # | |
| Change the owner and group of your Laravel project. | |
| sudo chown -R developer:www-data /var/www/project | |
| OR | |
| sudo chown -R developer:apache /var/www/project |
| {"lastUpload":"2022-01-22T18:11:17.053Z","extensionVersion":"v3.4.3"} |
| #!/bin/bash | |
| # This script resizes all the images it finds in a folder (and its subfolders) and resizes them | |
| # The resized image is placed in the /resized folder which will reside in the same directory as the image | |
| # | |
| # chmod +x batch_resize.sh | |
| # Usage: > ./batch_resize.sh | |
| # or run: | |
| # sips -Z 600 *.jpg | |
| initial_folder="/your/images/folder" # You can use "." to target the folder in which you are running the script for example |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| /** | |
| * Create a web friendly URL slug from a string. | |
| * | |
| * Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support. | |
| * | |
| * Although supported, transliteration is discouraged because | |
| * 1) most web browsers support UTF-8 characters in URLs | |
| * 2) transliteration causes a loss of information | |
| * | |
| * @author Sean Murphy <sean@iamseanmurphy.com> |
| $("#selectBox").append('<option value="option6">option6</option>'); |
| <?php | |
| $progressBar = $this->output->createProgressBar(count($users)); | |
| $progressBar->setEmptyBarCharacter(' '); | |
| $progressBar->setProgressCharacter('>'); | |
| $progressBar->setBarCharacter('-'); | |
| $progressBar->start(); | |
| foreach ($users as $user) { | |
| $this->performTask($user); |
| <template> | |
| <div> | |
| <span v-show="!editing" | |
| @click="toggleEdit" v-html="showValue"></span> | |
| <div v-show="editing" class="row"> | |
| <div class="col-md-10"> | |
| <div class="form-group"> | |
| <textarea class="form-control" | |
| rows="3" |