- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
| search | |
| https://appservidor.suatela.com/ajax/appv/appv2_2_0_8.php?v=9.9.9.9&tipo=buscar&nome={query here}&hwid=null | |
| watch movie | |
| https://appservidor.suatela.com/ajax/appv/appv2_2_0_8.php?v=9.9.9.9&tipo=filme&id={movie_id}&hwid=null | |
| movie video src | |
| https://appservidor.suatela.com/ajax/appv/appv2_2_0_8.php?v=9.9.9.9&tipo=categoria&nome=players&id_player=http://suatela.com/video/{movie_id}&filme_ou_serie=filme&dub_ou_leg=dublado | |
| filter based on categorie |
| #!/usr/bin/env bash | |
| # | |
| TEMPERATURE=${TEMPERATURE:-0} | |
| MAX_TOKENS=${MAX_TOKENS:-1000} | |
| MODEL=${MODEL:-"text-davinci-003"} | |
| message="$*" | |
| token="" | |
| clear_command="wipe" |
| #!/bin/sh | |
| # Shell script to add docker-ce to Deepin Linux repositories | |
| # Remove old docker | |
| sudo apt-get remove -y docker docker-engine docker.io containerd runc | |
| # Install dependencies | |
| sudo apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common | |
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
laravel wallpaper https://imgur.com/HcKx0K1
| <?php | |
| // Disable login (don't ask for credentials, be careful) | |
| // Example: $NO_LOGIN = true; | |
| $NO_LOGIN = false; | |
| // Single-user credentials | |
| // Example: $USER = 'user'; $PASSWORD = 'password'; | |
| $USER = 'fr3on'; | |
| $PASSWORD = '2c528ade717cb4c7f2cf4f44555db1e3bb67322792c73d85e4e3723101b1cbf6'; |
| <?php | |
| /** | |
| * Load correct autoloader depending on install location. | |
| */ | |
| if (file_exists(__DIR__ . '/../vendor/autoload.php')) { | |
| require_once __DIR__ . '/../vendor/autoload.php'; | |
| } else { | |
| require_once __DIR__ . '/../../../autoload.php'; | |
| } |
| alias winpwd='cygpath -aw .' | |
| alias clearlog='rm $(winpwd)/storage/logs/laravel.log' | |
| alias clearlogs='find $(winpwd)/storage/logs -name '*.log' -delete' |
| <?php | |
| namespace App\Console\Commands\GenLib; | |
| use goutte; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Helper\Table; | |
| class Search extends Command | |
| { |