- Fork https://github.com/github/dmca
- Download latest youtube-dl source code from https://yt-dl.org/latest
- Extract
tar -xvf youtube-dl-2020.09.20.tar.gz - Push code to your fork as the GitHub CEO
tar -xvf youtube-dl-2020.09.20.tar.gz
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class PewPewPew extends Command | |
| { | |
| protected $signature = 'pewpewpew'; | |
| protected $description = 'Command description'; |
| /** | |
| * Updates the passed dialog to retain focus and restore it when the dialog is closed. Won't | |
| * upgrade a dialog more than once. Supports IE11+ and is a no-op otherwise. | |
| * @param {!HTMLDialogElement} dialog to upgrade | |
| */ | |
| var registerFocusRestoreDialog = (function() { | |
| if (!window.WeakMap || !window.MutationObserver) { | |
| return function() {}; | |
| } | |
| var registered = new WeakMap(); |
| /** | |
| * Diagonally colored text, with fallback | |
| * Inspired from http://servicedesigndays.com/ | |
| */ | |
| h1 { | |
| max-width: 4.5em; | |
| font: bold 300%/1 Helvetica Neue, sans-serif; | |
| color: white; | |
| } |
| #!/bin/bash | |
| # Check if command was ran as root. | |
| if [[ $(id -u) -eq 0 ]]; then | |
| echo "The command \"sphp\" should not be executed as root or via sudo directly." | |
| echo "When a service requires root access, you will be prompted for a password as needed." | |
| exit 1 | |
| fi | |
| # Usage |
| <?php | |
| namespace Application\Service; | |
| use DateTime; | |
| class BarService | |
| { | |
| protected $dateTime; | |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)| <?php | |
| namespace Application\Entity; | |
| /** | |
| * Class Foo | |
| * | |
| * @package Application\Entity | |
| */ | |
| class Foo | |
| { |
(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.