Skip to content

Instantly share code, notes, and snippets.

View iChris's full-sized avatar
💭
Likely editing a podcast while dreaming of being a coder.

Chris Enns iChris

💭
Likely editing a podcast while dreaming of being a coder.
View GitHub Profile
@iChris
iChris / wp.njk
Created October 4, 2023 02:37
WP.njk Andy Original
---
permalink: 'wp.xml'
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
@iChris
iChris / wp.njk
Created August 15, 2023 16:12
WP.njk file contents
---
permalink: 'wp.xml'
---
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
@iChris
iChris / wp.xml
Created August 15, 2023 16:11
WP XML Output
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<rss xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/1.2/" version="2.0">
<channel>
<title>Faraway, So Close</title>
<link>https://chrisenns.com</link>
<description>Faraway, So Close is the blog of Chris Enns.</description>
<pubDate>Wed, 31 Dec 2023 10:27:40 +0000</pubDate>
<language>en-GB</language>
<wp:wxr_version>1.2</wp:wxr_version>
<wp:base_site_url>https://chrisenns.com</wp:base_site_url>
@iChris
iChris / gist:eec8862c2dec39c4e76f5c3a83ff1c8e
Created August 15, 2023 16:10
Netlify Error on Build
10:39:17 AM: Waiting for other deploys from your team to complete. Check the queue: https://app.netlify.com/teams/ichris/builds
10:39:45 AM: Build ready to start
10:40:15 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:39:46 AM: build-image version: 20e1f1f500e4cbad9ea8a99bd40807bef3093551 (focal)
10:39:46 AM: buildbot version: 00a030bf3c001e3c0d5d2d5931d77655af9653ed
10:39:46 AM: Fetching cached dependencies
10:39:46 AM: Starting to download cache of 305.4MB
10:39:48 AM: Finished downloading cache in 1.566s
10:39:48 AM: Starting to extract cache
10:39:50 AM: Finished extracting cache in 2.254s
@iChris
iChris / Example Post - New Front Matter.md
Created July 11, 2022 17:18
Example Post - New Front Matter
@iChris
iChris / Example Post - Current Front Matter.md
Created July 11, 2022 17:17
Example Post - Current Front Matter
layout title socialImage date tags
layouts/post.njk
Clubhouse as a Pandemic Pastime
/images/icons8-team-r-enaopw8rs-unsplash-1-.jpg
2021-02-04 15:03:54 UTC
socialmedia
clubhouse
audio

I've talked with a couple bookkeepers (one independant, one part of a larger company that does a lot of books) and none of them seem to have experience with a Canadian based sole proprieter dealing with primarily US based clients.

My business is relatively simple: send out an invoice for services, client pays it, I get the money and buy more supplies to survive winter in Canada. I have a Canadian CIBC business account, a Stripe account, a PayPal account, and a Canadian Visa card for expenses.

Here's where I get stuck with trying to figure out my books.

Example of Transactions

May 1st: Client A pays a $500USD invoice which goes into Stripe.

@iChris
iChris / index.js
Last active September 13, 2019 03:21
Blog2Markdown Node Script Converter
'use strict';
/***
Usage: blog2md b|w <BLOGGER/WordPress BACKUP XML> <OUTPUT DIR>
*/
const fs = require('fs');
const os = require('os');
.page-id-44 img#logo, .page-id-96 img#logo, .page-id-109 img#logo {
content: url("/wp474/wp-content/uploads/2017/04/association-logo-transparent-bkgrnd.png");
}
.page-id-38 img#logo, .page-id-40 img#logo, .page-id-42 img#logo, .page-id-46 img#logo {
content: url("/wp474/wp-content/uploads/2017/04/foundation-Logo-transparent-bkgrnd.png");
}

Keybase proof

I hereby claim:

  • I am ichris on github.
  • I am ichris (https://keybase.io/ichris) on keybase.
  • I have a public key whose fingerprint is 1E4C 30C2 DD41 3417 A562 421D E011 C09C CD14 FE3A

To claim this, I am signing this object: