Skip to content

Instantly share code, notes, and snippets.

@albertcarrete
albertcarrete / readme.md
Last active December 28, 2017 06:36
Surface Pro 4 Arch Linux Installation

Dual Booting Arch Linux / Windows 10 on a Surface Pro 4

Device: Surface Pro 4

OS: Windows 10 / Arch Linux 4.3.3 - 2016.01.01

Method: Arch Linux USB Installer

Shrink volume in Windows 10

Follow the instructions in disk partition windows.

Boot from USB

@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"