Skip to content

Instantly share code, notes, and snippets.

View chrissy-dev's full-sized avatar
🦕

Chris chrissy-dev

🦕
View GitHub Profile
// Save any image from a given site using wget
wget -nd -r -l 2 -A jpg,jpeg,png,gif http://www.mini.co.uk
wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off www.mini.co.uk
recurive ... >>
wget -nd -r -H -p -A jpg,jpeg,png,gif -e robots=off http://www.vw.com/
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 / gist:b7f60ca0172f0eee55c7ba27c9226ee5
Created February 8, 2017 16:05
Assume a file is unchanged
git update-index --assume-unchanged /Users/e0051728/_repos/EnquiryManagement/WebApp/ArnoldClark.Sales.POSMVC/Web.config
@chrissy-dev
chrissy-dev / github-rouge-theme.css
Last active March 1, 2017 15:44
github-rouge-theme.css
.highlight { font-size: 16px; background-color:#fff; border-radius: 3px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #000000; font-weight: bold } /* Keyword */
.highlight .o { color: #000000; font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
@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)

@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 / 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>
---
title: I'm the page title
language: Ruby
---
<h1>I'm compiled without using {{ language | upcase }}</h1>
@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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.