Skip to content

Instantly share code, notes, and snippets.

View jackmcdade's full-sized avatar
🌴
🏝

Jack McDade jackmcdade

🌴
🏝
View GitHub Profile
@jackmcdade
jackmcdade / *.createsend.com-stylebot.css
Last active October 20, 2021 12:41
Campaign Monitor Stylebot CSS Overrides
/*
Stylebot Overrides
https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha/related?hl=en-US
*/
li a span {
text-transform: capitalize;
}
li.c-feature-nav__link {
@jackmcdade
jackmcdade / nginx.conf
Created January 10, 2020 19:38
Sample Statamic 2 Nginx Conf
server {
listen 80;
server_name example.com;
root /var/www/example.com/public/;
ssl_protocols TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
@jackmcdade
jackmcdade / .gitignore
Created August 12, 2019 15:02
Statamic Default Gitignore
.DS_Store
.env
node_modules/
bower_components/
local/cache/*
local/storage/*
local/temp/*
installer.php
@jackmcdade
jackmcdade / globals.yaml
Created July 3, 2019 16:33
Statamic Fieldset for Head and Footer Scripts
title: 'Site Settings'
hide: true
sections:
main:
fields:
head_scripts:
mode: table
fields:
description:
type: text
@jackmcdade
jackmcdade / utilities.less
Created August 22, 2018 19:48
My Tailwind Utilties
/* Blend Modes
========================================================================== */
.mix-overlay { mix-blend-mode: overlay; }
.mix-multiply { mix-blend-mode: multiply; }
.mix-screen { mix-blend-mode: screen; }
.mix-lighten { mix-blend-mode: lighten; }
.mix-soft-light { mix-blend-mode: soft-light; }
.mix-difference { mix-blend-mode: difference; }
.mix-color { mix-blend-mode: color; }
@jackmcdade
jackmcdade / gist:ff8bf61fb57db5e74edd8a7b9b5a2b26
Last active February 2, 2021 09:34
Instagrizzle Scraper
// Quick and dirty Instagram scraper
private function scrape($username)
{
$source = file_get_contents('http://instagram.com/' . $username);
$shards = explode('window._sharedData = ', $source);
$json_response = explode(';</script>', $shards[1]);
$response_array = json_decode($json_response[0], TRUE);
$nodes = array_get($response_array, 'entry_data:ProfilePage:0:user:media:nodes');
$data = array();

Keybase proof

I hereby claim:

  • I am jackmcdade on github.
  • I am jackmcdade (https://keybase.io/jackmcdade) on keybase.
  • I have a public key ASAE1ElB7dMGW84pJKYaEsocav0Cen8ZFQVG085aOci6BAo

To claim this, I am signing this object:

@jackmcdade
jackmcdade / feed.html
Created May 8, 2017 13:37
Statamic RSS Feed
{{ xml_header }}
<rss version="2.0">
<channel>
{{ get_content from="/blog" }}
<title>{{ title | cdata }}</title>
<link>{{ site_url }}</link>
<description>{{ content | cdata }}</description>
{{ /get_content }}
<lastBuildDate>{{ collection:blog limit="1" }}{{ date format="r" }}{{ /collection:blog }}</lastBuildDate>
<language>en-us</language>
server {
listen 80;
server_name example.com;
root /var/www/example.com/public/;
ssl_protocols TLSv1.2;
index index.html index.htm index.php;
charset utf-8;