Skip to content

Instantly share code, notes, and snippets.

@drbyte
drbyte / dusk-chrome-update.sh
Created May 23, 2020 03:51
Dusk Chrome Update bash script MacOS
#!/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/
@drbyte
drbyte / change ckeditor from google api to jquery
Last active June 16, 2020 21:44
ckeditor fix for very old implementations
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>
@drbyte
drbyte / keybase.md
Created January 14, 2021 17:18
keybase.md

Keybase proof

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:

@drbyte
drbyte / config.referral_tracking.php
Created December 11, 2023 22:48
Coupon/ReferralCode Tracking / auto-apply in Zen Cart
<?php
$autoLoadConfig[100][] = array('autoType'=>'init_script',
'loadFile'=> 'init_referral_tracking.php');