Skip to content

Instantly share code, notes, and snippets.

🎮
Games is in the way

Kelly Karnetsky kel

🎮
Games is in the way
Block or report user

Report or block kel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View functions.php
/**
* Change the URL for static files to use the CDN
*/
if (FIT_USE_CDN)
{
add_filter('theme_root_uri', 'fit_cdn_rewrite', 99, 1);
add_filter('wp_get_attachment_image_src', 'fit_cdn_image_rewrite', 99, 1);
add_filter('the_content', 'fit_cdn_content_rewrite', 99, 1);
}
@kel
kel / Readme
Created Mar 23, 2018
Monitis Smart Agent service
View Readme
Create smartagent.service in /lib/systemd/system/ and run systemctl daemon-reload.
@kel
kel / iframe-lazyload.js
Created Oct 12, 2017
Simple way to lazyload iframes.
View iframe-lazyload.js
/**
* Simple way to lazyload iframes.
*
* Add class of 'lazyload' to iframe and change
* the 'src' attribute to 'data-src'
*/
jQuery(function($) {
function isVisible(element) {
var element = element.getBoundingClientRect()
@kel
kel / readme.md
Created Jun 26, 2017 — forked from nasrulhazim/readme.md
Using Middleware to Check Account Activation and Resend Activation E-mail
@kel
kel / readme.md
Created Jun 26, 2017 — forked from nasrulhazim/readme.md
Enable Account Activation in Order to Login to the System.
View readme.md
@kel
kel / readme.md
Created Jun 26, 2017 — forked from nasrulhazim/readme.md
Send Welcome Email Notification with Event and Listener
View readme.md

Send Welcome Email Notification with Event and Listener

Step 1

Create SendWelcomeEmailNotification notification

php artisan make:notification SendWelcomeEmailNotification
View helpers.php
<?php
/**
* Adds active to the class if current path
* equals passed path. Allows custom
* classes as well.
*
* @param $paths
* @param null $classes
* @return string
View keybase.md

Keybase proof

I hereby claim:

  • I am kel on github.
  • I am kel (https://keybase.io/kel) on keybase.
  • I have a public key whose fingerprint is ADF4 F24E CD8D BAB6 0489 8D25 8122 B076 76F0 F86D

To claim this, I am signing this object:

You can’t perform that action at this time.