Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ctorx
ctorx / gist:db7f9c127240aebca8df487bfe00b8d6
Created March 29, 2018 16:03
Ubuntu 17.10 Install and Configuration
Install/Config for Ubuntu 17.10
Grab the iso:
https://www.ubuntu.com/download/desktop/thank-you?country=US&version=17.10.1&architecture=amd64
Image the ISO to USB:
I'm on Windows so I use Win 32 Disk Imager. Get it here: https://sourceforge.net/projects/win32diskimager/
Using Win 32 Disk Imager, image the USB drive with the ISO
@ctorx
ctorx / criticalcss.html
Last active August 29, 2015 14:28 — forked from PaulKinlan/criticalcss.html
Detect Critical CSS
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<h2>Original CSS</h2>
<style style="display: block; white-space: pre; font-family: monospace">
h2 { margin:0; }
@ctorx
ctorx / criticalcss-bookmarklet-devtool-snippet.js
Last active August 29, 2015 14:27 — forked from PaulKinlan/criticalcss-bookmarklet-devtool-snippet.js
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");
# SSH Agent Functions
# Mark Embling (http://www.markembling.info/)
#
# How to use:
# - Place this file into %USERPROFILE%\Documents\WindowsPowershell (or location of choice)
# - Import into your profile.ps1:
# e.g. ". (Resolve-Path ~/Documents/WindowsPowershell/ssh-agent-utils.ps1)" [without quotes]
# - Enjoy
#
# Note: ensure you have ssh and ssh-agent available on your path, from Git's Unix tools or Cygwin.