Skip to content

Instantly share code, notes, and snippets.

View chrissy-dev's full-sized avatar
🦕

Chris chrissy-dev

🦕
View GitHub Profile
---
title: "Freeridical"
date: 2019-10-25
images:
- small: small-1.jpg
large: large-1.jpg
alt: First image
- small: small-1.jpg
@chrissy-dev
chrissy-dev / gist:993fbfbe5d136ee9f1165e0e002cf701
Created June 11, 2018 20:42
increase dates by 1 hour exiftool
exiftool '-DateTimeOriginal+=0:0:0 1:0:0'
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrissy-dev
chrissy-dev / gulpfile.js
Last active September 22, 2017 15:48
Sample Gulpfile to compile liquid (Jekyll) templates with Front Matter.
var engine = new Liquid.Engine,
es = require('event-stream'),
frontmatter = require('gulp-front-matter'),
fs = require('fs'),
Liquid = require('liquid-node'),
engine.registerFileSystem(new Liquid.LocalFileSystem('./_includes'))
gulp.task('compile', function() {
return gulp.src(['./page.html'])
// only compile pages that have changed
---
title: I'm the page title
language: Ruby
---
<h1>I'm compiled without using {{ language | upcase }}</h1>
@chrissy-dev
chrissy-dev / default.html
Last active September 22, 2017 15:46
Sample default.html
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>
{% if page.title %} {{page.title | escape}} {% endif %}
</title>
</head>
<body>
@chrissy-dev
chrissy-dev / header.html
Created September 22, 2017 15:45
Sample header.html
<header>I'm the header</header>
@chrissy-dev
chrissy-dev / setting_up_a_new_macbook.md
Last active June 5, 2019 15:59
Setting up a new Macbook

When setting up a new Mac this should be the bare minimal that is installed and working.

Assumptions

  • Should be a managed admin or full admin.

Install Apple Command Line Tools (Installs Git)