rsync -av --progress source_folder/* dest_folder/ --exclude folder_to_exclude/ -n
Use -n for dry run to see what will be copied, then remove -n to do real copy.
rsync -av --progress source_folder/* dest_folder/ --exclude folder_to_exclude/ -n
Use -n for dry run to see what will be copied, then remove -n to do real copy.
| <?php | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Symfony\Component\DomCrawler\Crawler; | |
| class PjaxMiddleware |
| <?php /* | |
| This program is free software: you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation, either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| GNU General Public License for more details. |
| #!/bin/bash | |
| # Runs the specified command (provided by the first argument) in all tmux panes | |
| # in every window. If an application is currently running in a given pane | |
| # (e.g., vim), it is suspended and then resumed so the command can be run. | |
| all-panes() | |
| { | |
| all-panes-bg_ "$1" & | |
| } |
| <?php | |
| use Faker\Factory as Faker; | |
| class ApiTester extends TestCase { | |
| /** | |
| * @var Faker | |
| */ | |
| protected $fake; |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):
| <?php | |
| // requires php5 | |
| define('UPLOAD_DIR', 'images/'); | |
| $img = $_POST['img']; | |
| $img = str_replace('data:image/png;base64,', '', $img); | |
| $img = str_replace(' ', '+', $img); | |
| $data = base64_decode($img); | |
| $file = UPLOAD_DIR . uniqid() . '.png'; | |
| $success = file_put_contents($file, $data); |