Skip to content

Instantly share code, notes, and snippets.


Brian Thomas Smith bsmth

View GitHub Profile
gjtorikian / homepage_spec.rb
Last active Dec 5, 2019
Basic Capybara testing with Jekyll + Rack
View homepage_spec.rb
require 'spec_helper'
describe "Homepage" do
before :each do
visit "/index.html"
it "has a title" do
expect(page).to have_css("h1", text: "GitHub Help")
willurd /
Last active Feb 1, 2023
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000