Skip to content

Instantly share code, notes, and snippets.

View ElliottH's full-sized avatar

Elliott Hillary ElliottH

View GitHub Profile

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

@xenophonf
xenophonf / ubuntu-14.04.3-macbookpro8,2-openzfs-luks-refind.md
Last active February 20, 2023 23:31
Dual-boot Mac OS X (FileVault2) and Ubuntu (OpenZFS/LUKS)

Dual-boot Mac OS X (FileVault2) and Ubuntu (OpenZFS/LUKS)

This procedure results in a computer that runs both Mac OS X and Ubuntu in a dual-boot configuration, each operating system using full (whole) disk encryption, and with the Ubuntu root file system stored on a ZFS pool encrypted using LUKS. The specific hardware and software versions used to document this procedure are:

  • MacBookPro8,2
@koreno
koreno / README.md
Last active April 1, 2020 10:44
'rebaser' improves on 'git rebase -i' by adding information per commit regarding which files it touched.

Prebase

git-prebase improves on 'git rebase -i' by adding information per commit regarding which files it touched.

  • Each file gets an alpha-numeric identifier at a particular column, a list of which appears below the commit list. (The identifiers wrap around after the 62nd file)
  • Commits can be moved up and down safely (without conflicts) as long as their columns don't clash (they did not touch the same file).

Installation

Add the executable to your path and git will automatically expose it as

@XVilka
XVilka / TrueColour.md
Last active July 9, 2024 23:28
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@savethefails
savethefails / RubyScope.rb
Last active December 12, 2019 21:18
I found keeping track of 'self' in Ruby Classes to be exhausting, so I created this handy example illustrating when self changes, where instance variables are stored, and against which self methods are executed.
class RubyScope
# `self` is the RubyScope Class
# (i.e. an Instance of RubyScope MetaClass)
@variable_type = 'class instance variable'
# Methods are defined in a class, but executd on an instance
# Created on self: "RubyScope", Executed on self: "any instance of RubyScope"
def initialize
# `self` is an Instance of RubyScope Class
@variable_type = 'instance variable'
@judy-zz
judy-zz / variables.css.less
Created June 18, 2012 03:45
Solarized colors for Twitter Bootstrap
@black: #002b36;
@grayDarker: #586e75;
@grayDark: #657b83;
@gray: #839496;
@grayLight: #93a1a1;
@grayLighter: #eee8d5;
@white: #fdf6e3;
@blue: #2aa198;
@blueDark: #268bd2;
@mysteriouspants
mysteriouspants / Rakefile
Created January 31, 2012 17:23
ARMED AND FULLY OPERATIONAL RAKEFILE!!!!
require 'rake/clean'
CC = 'clang'
CXX = 'clang++'
LD = CC
PRODUCTS = {
# executable => source file with the main method
'example_main' => 'example_main.m',
'default_description_example' => 'default_description_example.m'