- 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
| 1. Rename your local branch. | |
| If you are on the branch you want to rename: git branch -m new-name | |
| or If you are on a different branch: git branch -m old-name new-name | |
| 2. Delete the old-name remote branch and push the new-name local branch. | |
| git push origin :old-name new-name | |
| 3. Reset the upstream branch for the new-name local branch. | |
| Switch to the branch and then: git push origin -u new-name |
| { | |
| "nodes": [ | |
| {"id": "Myriel", "group": 1}, | |
| {"id": "Napoleon", "group": 1}, | |
| {"id": "Mlle.Baptistine", "group": 1}, | |
| {"id": "Mme.Magloire", "group": 1}, | |
| {"id": "CountessdeLo", "group": 1}, | |
| {"id": "Geborand", "group": 1}, | |
| {"id": "Champtercier", "group": 1}, | |
| {"id": "Cravatte", "group": 1}, |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| ----- BEGIN LICENSE ----- | |
| Andrew Weber | |
| Single User License | |
| EA7E-855605 | |
| 813A03DD 5E4AD9E6 6C0EEB94 BC99798F | |
| 942194A6 02396E98 E62C9979 4BB979FE | |
| 91424C9D A45400BF F6747D88 2FB88078 | |
| 90F5CC94 1CDC92DC 8457107A F151657B | |
| 1D22E383 A997F016 42397640 33F41CFC | |
| E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D |