This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var assert = require('assert'); | |
| var mongoose = require('mongoose'); | |
| var async = require('async'); | |
| var Schema = mongoose.Schema; | |
| var ObjectId = mongoose.Types.ObjectId; | |
| console.log('\n==========='); | |
| console.log(' mongoose version: %s', mongoose.version); | |
| console.log('========\n\n'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location /selfoss/ { | |
| try_files $uri $uri/ @selfoss; | |
| } | |
| location @selfoss { | |
| rewrite /selfoss/ /selfoss/index.php; | |
| } | |
| location ^/selfoss/index.php(/.*)?$ { | |
| fastcgi_split_path_info ^(/selfoss/index.php)(/.*)$; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(isset($_POST['submit'])){ | |
| $firstName = isset($_POST['firstName']) ? $_POST['firstName'] : ''; | |
| $middleName = isset($_POST['middleName']) ? $_POST['middleName'] : ''; | |
| $lastName = isset($_POST['lastName']) ? $_POST['lastName'] : ''; | |
| $email = isset($_POST['email']) ? $_POST['email'] : ''; | |
| $mobile = isset($_POST['mobile']) ? $_POST['mobile'] : ''; | |
| $locations = isset($_POST['locations_list']) ? $_POST['locations_list'] : ''; | |
| $position = isset($_POST['position']) ? $_POST['position'] : ''; | |
| $message = isset($_POST['message']) ? $_POST['message'] : ''; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Test | |
| if |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name domain.com www.exampple.com; | |
| autoindex on; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # test | |
| find . -name "*.class.php" -type f -exec rename -n 's/\.class.php$/\.php/' *.php '{}' \; | |
| # execute | |
| find . -name "*.class.php" -type f -exec rename 's/\.class.php$/\.php/' *.php '{}' \; | |
| #!/usr/bin/env bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function __toString()[^$:}]+} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tools : | |
| GIT | |
| PHP | |
| Nginx | |
| mysql | |
| Sublime , PhpStorm, ATOM, VIM | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # laravel new-app | |
| alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git" | |
| alias artisan="php artisan" | |
| alias migrate="php artisan migrate" | |
| alias serve="php artisan serve" | |
| alias dump="php artisan dump" | |
| alias t="phpunit" | |
| # Generators Package |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Database\Events\QueryExecuted; | |
| use Illuminate\Support\Facades\Event; | |
| use Illuminate\Support\Facades\Log; | |
| use Illuminate\Support\ServiceProvider; | |
| class DebugServiceProvider extends ServiceProvider |
OlderNewer