Skip to content

Instantly share code, notes, and snippets.

View mttchpmn's full-sized avatar
✌️

Matt Chapman mttchpmn

✌️
View GitHub Profile
@mttchpmn
mttchpmn / docker-windows.md
Created May 28, 2018 22:34
Setting up Docker on Windows

Steps to get Docker (and Dev environment) working on Windows 10

Steps

  • Download docker for Windows
  • Download Hyper Terminal (optional)
  • Download VS Code (optional)
  • Enable Windows subsystem for Linux
    • Search 'Turn Windows features on or off' and enable the checkbox
  • Install Ubuntu 18.04 from Microsoft store
@mttchpmn
mttchpmn / docker-windows.md
Created May 28, 2018 22:34
Setting up Docker on Windows

Steps to get Docker (and Dev environment) working on Windows 10

Steps

  • Download docker for Windows
  • Download Hyper Terminal (optional)
  • Download VS Code (optional)
  • Enable Windows subsystem for Linux
    • Search 'Turn Windows features on or off' and enable the checkbox
  • Install Ubuntu 18.04 from Microsoft store
@mttchpmn
mttchpmn / javascriptreact.json
Last active June 5, 2018 11:22
React Snippets for VS Code
{
"React Class Component": {
"prefix": "rcc",
"description": "Boilerplate for React Class-based component",
"body": [
"import React, { Component} from 'react';",
"",
"class ${1:ClassName} extends Component {",
"\tconstructor(props) {",
"\t\tsuper(props);",
{
"React Class Component": {
"prefix": "rcc",
"description": "Boilerplate for React Class-based component",
"body": [
"import React, { Component} from 'react';",
"",
"class ${1:ClassName} extends Component {",
"\tconstructor(props) {",
"\t\tsuper(props);",
@mttchpmn
mttchpmn / runner.js
Created December 23, 2019 07:05
Converts the copied text of 'http://www.aip.net.nz/pdf/AD_1.3.pdf' into a usable aerodromes object
const readline = require("readline");
const fs = require("fs");
const reader = readline.createInterface({
input: fs.createReadStream("./aerolist.txt"),
output: process.stdout,
console: false
});
let index = 0;
@mttchpmn
mttchpmn / Keyboard-Shortcuts.md
Last active October 13, 2023 03:46
Keyboard shortcuts for mac OS, VS Code, and Google Chrome

Keyboard Shortcuts

mac OS

Requires Amethyst window manager to be installed

Description Key Command(s)cc Handled By Defined in Notes
Move left a space (desktop) ctrl+left mac OS
Move right a space (desktop) ctrl+right mac OS
@mttchpmn
mttchpmn / arch-xps-9570.md
Last active July 3, 2020 01:07
Arch Linux Install on XPS 9570

Arch Install on XPS 9570

Installation

Connect to wifi

# Get interface list
ip link
@mttchpmn
mttchpmn / tips.md
Last active January 24, 2021 19:13
South Island travel tips
@mttchpmn
mttchpmn / dotnetlayout.md
Created January 19, 2021 18:25 — forked from davidfowl/dotnetlayout.md
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@mttchpmn
mttchpmn / Stopwatch.cs
Last active February 13, 2021 01:29
C# Stopwatch Class
using System;
namespace Sandbox
{
public class Stopwatch
{
private bool _started;
private DateTime _startTime;
public TimeSpan Duration { get; private set; }