Skip to content

Instantly share code, notes, and snippets.

View DaveyJake's full-sized avatar
🎯
Focusing

Davey Jacobson DaveyJake

🎯
Focusing
View GitHub Profile
@DaveyJake
DaveyJake / local-business-json-ld.js
Last active August 13, 2021 19:08 — forked from bavington/local-business-JSON-LD.js
Forked to improve formatting.
// A simple, single location local business JSON-LD Schema Boilerplate
// By @bavington, available on GitHub: http://bit.ly/Local_JSON
{
"@context": "http://schema.org",
"@type": "Plumber", // Change to the most specific type (List of choices: https://goo.gl/tvMVHf)
"name": "Custom Heat", // *REQUIRED
"legalName": "Custom Heat Ltd", // The Registered Business Name
"vatID": "776796257",
"description": "Established in Rugby since 1980, Custom Heat are a family run central heating and plumbing business serving Rugby, Royal Leamington Spa and Warwick.",
"logo": "http://www.customheat.co.uk/wp-content/themes/custom-heat/images/custom-heat-logo.png",
@DaveyJake
DaveyJake / .htaccess
Last active September 12, 2019 05:48 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
# 301 Redirects for .htaccess
# Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
# Redirect an entire site:
Redirect 301 / http://www.domain.com/
# Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@DaveyJake
DaveyJake / nginx.conf
Created May 11, 2018 04:38 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@DaveyJake
DaveyJake / rn-i18n-locale-identifiers.csv
Created September 9, 2017 09:46 — forked from kiwicopple/rn-i18n-locale-identifiers.csv
React Native i18n Locale Identifiers
Locale Identifier Description
af Afrikaans
af-NA Afrikaans (Namibia)
af-ZA Afrikaans (South Africa)
agq Aghem
agq-CM Aghem (Cameroon)
ak Akan
ak-GH Akan (Ghana)
am Amharic
am-ET Amharic (Ethiopia)
@DaveyJake
DaveyJake / 0_reuse_code.js
Created December 3, 2015 02:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@DaveyJake
DaveyJake / wp-rss2-image-enclosure.php
Last active January 12, 2024 16:28 — forked from supermethod/Wordpress RSS 2.0 image enclosure
WP RSS 2.0 Image Enclosure with File Size
<?php
/**
* Wordpress RSS Image Enclosure
*
* Wrap ONLY the featured image inside 'enclosure' tags.
*
* @author Davey Jacobson
* @link https://www.daveyjake.dev
*
* @package DJ_Dev