$ ssh [email protected]
Enter Password: raspberry
$ sudo raspi-config
Choose 'Repurpose entire SD card'
Update apt repositories
$ ssh [email protected]
Enter Password: raspberry
$ sudo raspi-config
Choose 'Repurpose entire SD card'
Update apt repositories
| rails runner "ApplicationController.allow_forgery_protection = false; s = ActionDispatch::Integration::Session.new(Rails.application); s.post('/login', user: {login: 'admin', password: 'password'}); s.get('/my'); puts s.response.body" |
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service
| // This will allow unordered search terms to match relevant string | |
| // e.g. Really Long String will be matched by | |
| // - long string | |
| // - long really | |
| // - all ring | |
| // ..etc | |
| // I have used this anonymous function to override the matcher function in select2 | |
| function(term, text) { |
| require 'rubygems' | |
| prefork = lambda { | |
| ENV["RAILS_ENV"] ||= 'test' | |
| require File.expand_path("../../config/environment", __FILE__) | |
| require 'rspec/rails' | |
| } | |
| each_run = lambda { | |
| ... |
| #!/usr/bin/env ruby | |
| require 'mechanize' | |
| USERNAME = "" | |
| PASSWORD = "" | |
| # TODO: Save cookies with "http.cookie_jar.{load,save} filename" | |
| # TODO: Store password in ~/.config or some kind of wallet |
| # config/routes.rb | |
| resources :documents do | |
| scope module: 'documents' do | |
| resources :versions do | |
| post :restore, on: :member | |
| end | |
| resource :lock | |
| end | |
| end |
This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.
Highly recommended things!
This is my five-star list. These are my favorite things in all the world.
A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★
| FROM ubuntu:12.04 | |
| RUN apt-get update | |
| RUN apt-get install -y --force-yes build-essential curl git | |
| RUN apt-get install -y --force-yes zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev | |
| ADD http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz /tmp/ruby-2.1.0.tar.gz | |
| RUN cd /tmp; \ | |
| tar xzf ruby-2.1.0.tar.gz; \ |