Skip to content

Instantly share code, notes, and snippets.

View jnpkr's full-sized avatar
🏠
Working from home

Jon Parker jnpkr

🏠
Working from home
View GitHub Profile
@jnpkr
jnpkr / styleEditor.css
Created September 4, 2018 18:02
Less useless CSS styling for Airmail 3
/* Normalize.css */
/* Contents of this file must be inlined to your newsletter in production */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
li a,

Keybase proof

I hereby claim:

  • I am jnpkr on github.
  • I am jonparker (https://keybase.io/jonparker) on keybase.
  • I have a public key ASDe8JQXuj3eU4Z_vDTd-1b3LKNfWfrMYltJEmJ7n8Bo4Qo

To claim this, I am signing this object:

@jnpkr
jnpkr / parkwood-json-ld-breadcrumbs.php
Created October 26, 2017 18:56
Quick and dirty WordPress drop-in plugin to generate BreadcrumbList structured data for nested posts/pages
<?php
/*
Plugin Name: Parkwood JSON-LD Breadcrumbs
Plugin URI: http://www.parkwooddigital.com/
Description: Generate JSON-LD breadcrumbs structured data for Google on pages
Author: Jon Parker <jon@parkwooddigital.com>
Version: 1.0
Author URI: http://www.parkwooddigital.com/
*/
@jnpkr
jnpkr / bower.json
Created July 21, 2016 16:08
Basic Boostrap
{
"name": "bstest",
"authors": [
"Jon Parker"
],
"description": "",
"main": "",
"license": "MIT",
"homepage": "",
"ignore": [
@jnpkr
jnpkr / ipn.py
Last active December 16, 2015 07:39 — forked from doobeh/ipn.py
# -*- coding: utf-8 -*-
"""
IPN Engine
~~~~~~~~~~
PayPal's Instant Payment Notification (IPN) helps integrate PayPal more
deeply into your web application. When activated, PayPal will send a
POST request to a specified URL when a transaction's status changes.
The most obvious use is to trigger a state change, enable an account,
@jnpkr
jnpkr / social-colours.sass
Created February 21, 2013 13:22
Social Media Colours in Sass
// Social media website colours
// Based on http://designpieces.com/2012/12/social-media-colours-hex-and-rgb/
$facebookBlue: #3b5998
$twitterBlue: #00aced
$googlePlusRed: #dd4b39
$youTubeRed: #bb0000
$linkedinBlue: #007bb6
$instagramBlue: #517fa4
$pinterestRed: #cb2027
#!/bin/bash
#
# Run within WordPress directory
# - Changes file permissions but not ownership
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 660 ./wp-config.php
@jnpkr
jnpkr / create_vhosts.sh
Last active December 12, 2015 09:49
Create new Apache virtualhost on Ubuntu 10.0.4 (Lucid)
#!/bin/bash
#! Shell script to add domains/websites in apache
echo "Enter the domain:"
read domain
mkdir -p "/srv/www/$domain/public_html"
mkdir "/srv/www/$domain/logs"
echo "<VirtualHost *:80>" >> "/etc/apache2/sites-available/$domain"
echo " ServerAdmin webmaster@$domain" >> "/etc/apache2/sites-available/$domain"