Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
<?php | |
// app/start/global.php | |
/* | |
|-------------------------------------------------------------------------- | |
| Application Error Logger | |
|-------------------------------------------------------------------------- | |
| | |
| Here we will configure the error logger setup for the application which |
A list of amazingly awesome PHP libraries that you should be using:
{"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 |
A list of amazingly awesome PHP libraries, resources and shiny things.
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.
I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:
# 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> |