Skip to content

Instantly share code, notes, and snippets.

View yllus's full-sized avatar

Sully Syed yllus

View GitHub Profile
<div id="ad_bigbox_99">
<script>
window.CFLAdUtility.displayAd('CFL_Network_BigBox', 'ad_bigbox_99', [300, 250]);
</script>
</div>

Players

The query:

SELECT Player.CFLCentralID, 
Player.FirstName, 
Player.MiddleName, 
Player.LastName, 
Player.BirthDate, 

Player.BirthPlace,

<?php
// This file needs to be symlinked or copied to wp-content/object-cache.php
# Users with setups where multiple installs share a common wp-config.php or $table_prefix
# can use this to guarantee uniqueness for the keys generated by this object cache
if ( !defined( 'WP_CACHE_KEY_SALT' ) )
define( 'WP_CACHE_KEY_SALT', '' );
if ( ! defined( 'WP_REDIS_OBJECT_CACHE' ) ) {
@yllus
yllus / aws-copy.bat
Created October 6, 2016 13:50
aws-copy.bat
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 47 TOR@EDM\15#47TOR(TV)@EDM(TV)082815.MP4" s3://cfl.vod.source/2015/2218.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 48 CGY@WPG\15#48CAL(TV)@WPG(TV)082915.MP4" s3://cfl.vod.source/2015/2219.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 49 SASK@OTT\15#49SSK(TV)@OTT(TV)083015.MP4" s3://cfl.vod.source/2015/2220.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 73 WPG@BC\15#73WPG(TV)@BC(TV)101015.MP4" s3://cfl.vod.source/2015/2244.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 74 TOR@MTL\15#74TOR(TV)@MTL(TV)101215.MP4" s3://cfl.vod.source/2015/2245.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 75 WPG@OTT\15#75WPG(TV)@OTT(TV)101615.MP4" s3://cfl.vod.source/2015/2246.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 76 CAL@TOR\15#76CAL(TV)@TOR(TV)101715.MP4" s3://cfl.vod.source/2015/2247.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 77 BC@EDM\15#77BC(TV)@EDM(TV)101715.MP4" s3://cfl.vod.source/2015/2248.mp4
aws s3 cp "D:\DVSMEDIA\2015 CFL GAMES\GAME 78 HAM@MTL\15#78
@yllus
yllus / aws-copy-2016.bat
Last active October 16, 2016 20:33
aws-copy-2016.bat
aws s3 cp "\\dvs_CFL_server.corp.cfl.ca\fs1\DVSMEDIA\2016 CFL GAMES\16 GAME 75 OTT @ HAM\1675 10-14-16 OTT TV @ HAM TV.MP4" s3://cfl.vod.source/2016/2341.mp4
aws s3 cp "\\dvs_CFL_server.corp.cfl.ca\fs1\DVSMEDIA\2016 CFL GAMES\16 GAME 76 WPG @ BC\1676 10-14-16 WPG TV @ BC TV.MP4" s3://cfl.vod.source/2016/2342.mp4
aws s3 cp "\\dvs_CFL_server.corp.cfl.ca\fs1\DVSMEDIA\2016 CFL GAMES\16 GAME 77 SSK @ TOR\1677 10-15-16 SSK TV @ TOR TV.MP4" s3://cfl.vod.source/2016/2343.mp4
aws s3 cp "\\dvs_CFL_server.corp.cfl.ca\fs1\DVSMEDIA\2016 CFL GAMES\16 GAME 78 MTL @ CGY\1678 10-15-16 MTL TV @ CAL TV.MP4" s3://cfl.vod.source/2016/2344.mp4
SET NOCOUNT ON
SET XACT_ABORT ON
DECLARE @GameID INTEGER
SET @GameID = '2291'
DECLARE @ScoreAt TABLE (PlayID int PRIMARY KEY, HomeScore int, VisitorScore int)
INSERT INTO @ScoreAt (PlayID, HomeScore, VisitorScore)
SELECT p.PlayID, ISNULL(MAX(sp.HomeScore), 0) AS HomeScore, ISNULL(MAX(VisitorScore), 0) AS VisitorScore
@yllus
yllus / TWEETS.txt
Last active November 21, 2016 18:37
Twitter Wall Tweets
#GoodLuckStamps
---------------
@mileyfan201 @calstampeders #goodluckstamps lets bring the greycup back to alberta where it belongs cheering from yql
@theolympicoval #JPPenguin says congrats to @bolevimitchell &amp; the @calstampeders on your big win in the @cfl West Final!
@1robinstweet 40+ years a Stamps fan. #GoodLuckStamps
@Redromeo9 @calstampeders We will be in the stands in TO screaming our support during the GC. GO STAMPS GO. 1 more win for Mylan. #GoodLuckStamps
@EmilyChristen12 Cheering on my team yesterday! @calstampeders what was the final attendance #? It looked full! #GoodLuckStamps #CFL
@auboo24 @CFL Bring home the Grey Cup for Mylan ️🏼 #GoodLuckStamps #Horsepower
@richard_gorham #goodluckstamps all the way from the UK. It's time for another #GreyCup JUST ONE MORE WIN BOYS - YOU CAN DO IT! #WhateverItTakes
@yllus
yllus / CFL_Fantasy_GA_code.html
Last active May 4, 2017 17:57
CFL Fantasy: Tracking code for Tracking ID UA-9442661-30
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-9442661-30', 'auto');
ga('send', 'pageview');
</script>

The request I make is:

{
   "Version":2,
   "Type":"Program",
   "DateRanges":[
      {
         "StartDate":"2017-05-23T00:00:00Z",
 "EndDate":"2017-06-23T00:00:00Z"
@yllus
yllus / admin-ajax.php
Last active December 4, 2023 11:21
An optimized admin-ajax.php that executes visitor-only AJAX requests in WordPress
<?php
// Note: This file exists as a near-copy of /wp-admin/admin-ajax.php so that caching on this URL can occur.
/**
* WordPress AJAX Process Execution.
*
* @package WordPress
* @subpackage Administration
*
* @link https://codex.wordpress.org/AJAX_in_Plugins