Skip to content

Instantly share code, notes, and snippets.

View jasontucker's full-sized avatar

Jason Tucker jasontucker

View GitHub Profile
<?xml version="1.0"?>
<opml version="1.0">
<head>
<title>Jason's Overcast Podcast Subscriptions</title>
</head>
<body>
<outline type="rss" text="Griddlecakes Radio" title="Griddlecakes Radio" xmlUrl="https://www.griddlecakes.com/griddlecakes.xml" htmlUrl="http://www.griddlecakes.com/"/>
<outline type="rss" text="Cortex" title="Cortex" xmlUrl="https://www.relay.fm/cortex/feed" htmlUrl="https://www.relay.fm/cortex"/>
<outline type="rss" text="Upgrade" title="Upgrade" xmlUrl="https://www.relay.fm/upgrade/feed" htmlUrl="https://www.relay.fm/upgrade"/>
<outline type="rss" text="Switched on Pop" title="Switched on Pop" xmlUrl="https://feeds.megaphone.fm/switchedonpop" htmlUrl="http://www.switchedonpop.com/"/>
-- determine if path to '~/Pictures/Screenshots' exists, if not, create it
set homeFolderPath to POSIX path of (path to home folder as string)
set screenshotStoragePath to homeFolderPath & "Pictures/Screenshots/"
tell application "System Events"
if (not (exists folder screenshotStoragePath)) then
tell application "Finder"
make new folder at (path to home folder as string) & "Pictures" with properties {name:"Screenshots"}
end tell
end if
end tell
@jasontucker
jasontucker / ADA Basic CSS changes
Last active April 30, 2020 22:42
#website #wordpress #ross
#topbanner a{ color: black;}
#topbanner a:hover{ color: white;}
#footer a{ color: black;}
#footer a[href^="tel:"] {
font-weight: bold;
color: #68a648;
}
set _win to false
tell application "Google Chrome"
set {idList, urlList} to {id, URL} of every tab of every window
end tell
set AppleScript's text item delimiters to linefeed
if (urlList as text) contains "https://meet.google.com/" = true then
set theWin to 1
tell application "System Events"
set ProcessList to name of every process
if "TextEdit" is in ProcessList then
set ThePID to unix id of process "TextEdit"
do shell script "kill -KILL " & ThePID
@jasontucker
jasontucker / PRTG-mailchimp-subscriptions-count.php
Last active October 24, 2017 23:09
Generates a PRTG friendly XML file for use with a PRTG XML sensor
<?php
header('Content-Type: text/xml');
// API Values
$api_key = '';
$dc = ''; //us15
$list = '';
// Create the logs directory and create the two log files
$lastRunLog = 'logs/lastrun.log';
add_action( 'fl_builder_post_grid_after_column', 'probb_add_google_adsense', 10, 2 );
function probb_add_google_adsense( $settings, $module ){
//if( is_home() || is_front_page() ){
//if( 'columns' !== $settings->layout && 'main_query' !== $settings->data_source){
if( 'columns' !== $settings->layout ){
// If we're using the column layout or not
return;
}
@jasontucker
jasontucker / display_event_time.php
Created May 10, 2017 16:33
WordPress Display Event Time shortcode using WordTimeBuddy.com
function display_event_time( $atts ) {
$a = shortcode_atts( array(
'day' => '12/13/2014',
'time' => '14.00',
), $atts );
$add = '<span class="wtb-ew-v1" style="width: 560px; display:inline-block">
<script src="https://www.worldtimebuddy.com/event_widget.js?h=5368361&md=' . esc_attr($a['day']) . '&mt=' . esc_attr($a['time']) . '&ml=1.00&sts=0&sln=0&wt=ew-ltc"></script>
// Event Espresso plugin for WordPress
// includes/event-management/queries
// For some reason Event Espress limits the queries of all of it's
// queries to 50 when you have over 100 events 50 isnt going to cut it.
// $max_rows = isset($_REQUEST['max_rows']) & !empty($_REQUEST['max_rows']) ? absint($_REQUEST['max_rows']) : 50;
// to
$max_rows = isset($_REQUEST['max_rows']) & !empty($_REQUEST['max_rows']) ? absint($_REQUEST['max_rows']) : 10000;
function recent_donors_function() {
//Get the latest 100 Give Donors
$args = array(
'number' => 100,
function recent_donors_function() {
$donors = Give() - > customers - > get_customers($args);
foreach($donors as $donor) {