Sheel para converter fotos .CR2
para .jpeg
View Procfile
web: sh app_boot.sh | |
worker: php artisan queue:listen |
View estados-cidades.json
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
View README.md
View .htaccess
#Força a utilizar Cache-Control e Expires header | |
<IfModule mod_headers.c> | |
Header unset ETag | |
</IfModule> | |
FileETag None | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
ExpiresByType text/cache-manifest "access plus 0 seconds" | |
# Html |
View EloquentCheatSheet.md
Overview
Source: https://medium.com/@Mahmoud_Zalt/eloquent-relationships-cheat-sheet-5155498c209
One to one ( 1-1 ) |
One to many ( 1-n ) |
Poly one to many ( 1x-n ) |
Many to many ( n-n ) |
Poly many to many ( nx-n ) |
|
---|---|---|---|---|---|
Number of models | 2 only | 2 only | 3 and above | 2 only | 3 and above |
Number of tables | 2 (1/model) | 2 (1/model) | 3+ (1/model) | 3 (1/model + pivot) | 4+ (1/model + pivot) |
Pivot table | - | - | - | required |
View docker.shell
#!/bin/bash | |
if docker network ls | grep nginx-proxy; then | |
echo 'network found' | |
else | |
echo 'network not found'; | |
docker network create nginx-proxy | |
fi | |
if docker ps | grep nginx-proxy; then |
View .stylelintrc
{ | |
"plugins": ["stylelint-order", "stylelint-config-rational-order/plugin"], | |
"rules": { | |
"order/properties-order": [], | |
"plugin/rational-order": [ | |
true, | |
{ | |
"border-in-box-model": false, | |
"empty-line-between-groups": false | |
} |
View settings.json
{ | |
"terminal.integrated.fontSize": 14, | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.startupEditor": "newUntitledFile", | |
"workbench.sideBar.location": "right", | |
"editor.tabSize": 2, | |
"editor.fontSize": 18, | |
"editor.lineHeight": 26, |
View bumpversion.sh
#!/bin/bash | |
# works with a file called VERSION in the current directory, | |
# the contents of which should be a semantic version number | |
# such as "1.2.3" | |
# this script will display the current version, automatically | |
# suggest a "minor" version update, and ask for input to use | |
# the suggestion, or a newly entered value. |