I hereby claim:
- I am drbyte on github.
- I am drbyte (https://keybase.io/drbyte) on keybase.
- I have a public key ASDMu4L2lyvJ_WV0dPjk8FnquqW9fU13W2ufxphqLcX3QQo
To claim this, I am signing this object:
| <?php | |
| $autoLoadConfig[100][] = array('autoType'=>'init_script', | |
| 'loadFile'=> 'init_referral_tracking.php'); |
I hereby claim:
To claim this, I am signing this object:
| Look at your /admin/includes/ckeditor.php file | |
| // REMOVE THESE TWO LINES: | |
| <script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script> | |
| <script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script> | |
| // REPLACE THEM WITH THIS LINE: | |
| <script>window.jQuery || document.write('<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"><\/script>');</script> |
| #!/bin/bash | |
| # https://chromedriver.storage.googleapis.com/LATEST_RELEASE | |
| # https://chromedriver.storage.googleapis.com/%s/chromedriver_mac64.zip | |
| # unzip | |
| # mv chromedriver /vendor/laravel/dusk/bin/chromedriver-mac | |
| if [ ! -f "./vendor/laravel/dusk/bin/chromedriver-mac" ]; then echo 'No Dusk Dir.' && exit 1; fi | |
| a=$(uname -m) && | |
| rm -r ~/Downloads/chromedriver/ |
| <?php | |
| namespace App\Notifications; | |
| use App\Helpers\RemembersLocale; | |
| use Illuminate\Bus\Queueable; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Notifications\Messages\MailMessage; | |
| use Illuminate\Notifications\Notification; | |
| use Notifications\Channels\FirebaseChannel; |
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| <?php | |
| // Create in-memory SQLite database | |
| $sqlite = new PDO('sqlite::memory:'); | |
| // Generate schema (for whatever tables you want) | |
| $sqlite->prepare('CREATE TABLE users(id, family_id, first_name, last_name, email)')->execute(); | |
| $sqlite->prepare('CREATE TABLE families(id, name, phone, address)')->execute(); | |
| // Insert pre-defined data |
| # ---------------------------------------------------------------------- | |
| # Put well known resources in the .well-known folder | |
| # https://github.com/fvsch/scripts-and-snippets/blob/master/apache/rewrite-well-known.conf | |
| # ---------------------------------------------------------------------- | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| # Some very common, then less common "well-known" patterns | |
| RewriteCond %{REQUEST_URI} =/favicon.jpg [OR] | |
| RewriteCond %{REQUEST_URI} =/favicon.ico [OR] |
| <?php | |
| # app/Validation/AllowedUsernameValidator.php | |
| namespace App\Validation; | |
| use Illuminate\Filesystem\Filesystem; | |
| use Illuminate\Routing\Router; | |
| use Illuminate\Config\Repository; |