Skip to content

Instantly share code, notes, and snippets.

View knice's full-sized avatar

Rob Knight knice

View GitHub Profile

To the members of the MIT community:

We are writing to inform you of plans to upgrade the MIT campus network, and in particular to upgrade MIT to the next generation of Internet addressing. (Please note that no action is required on your part.)

Machines on the Internet are identified by addresses. The current addressing scheme, called IPv4, was specified around 1980, and allowed for about 4 billion addresses. That seemed enough at the time, which was before local area networks, personal computers and the like, but the Internet research community recognized around 1990 that this supply of addresses was inadequate, and put in place a plan to replace the IPv4 addresses with a new address format, called IPv6. IPv6 uses a 128-bit address scheme and is capable of 340 undecillion addresses (340 times 10^36, or 340 trillion trillion trillion possible IP addresses). This stock of addresses allows great flexibility in how addresses are assigned to hosts, for example allowing every host to use a range of addresses to

@knice
knice / gh-pages-deploy.md
Created April 3, 2016 23:30 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@knice
knice / sinatra_docker.md
Created January 22, 2016 04:23
Sinatra (modular) & Docker
require "sinatra/base"

class App < Sinatra::Base
  set :bind, "0.0.0.0"
    
  get "/status" do
    "ok"
  end
end
@knice
knice / rainbow-banner.md
Last active June 2, 2021 22:13 — forked from anonymous/untitled
How we added a rainbow banner to the top of the UCSC homepage.

How we added a rainbow stripe to the top of the UCSC home page on June 26, 2015

  • I grabbed the colors from the rainbow banner on A List Apart.
  • We added this to the <head>:
<style type="text/css">

body {
 position: relative;