-
Download NOOBS
-
Use ApplePi-Baker to Prepare SD card for NOOBS.
-
Copy the extracted contents of NOOBS download onto SD card.
-
Follow the instructions for an automatic install.
-
Insert the SD card into the Pi, attach an ethernet cable, plug it in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError: undefined method `trace_id' for Marginalia::Comment:Module | |
/app/vendor/bundle/ruby/2.5.0/gems/marginalia-1.10.1/lib/marginalia/comment.rb:25:in `block in construct_comment' | |
/app/vendor/bundle/ruby/2.5.0/gems/marginalia-1.10.1/lib/marginalia/comment.rb:24:in `each' | |
/app/vendor/bundle/ruby/2.5.0/gems/marginalia-1.10.1/lib/marginalia/comment.rb:24:in `construct_comment' | |
/app/vendor/bundle/ruby/2.5.0/gems/marginalia-1.10.1/lib/marginalia.rb:50:in `annotate_sql' | |
/app/vendor/bundle/ruby/2.5.0/gems/marginalia-1.10.1/lib/marginalia.rb:71:in `execute_with_marginalia' | |
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.19/lib/active_record/connection_adapters/postgresql/schema_statements.rb:286:in `client_min_messages=' | |
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.19/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in `configure_connection' | |
/app/vendor/bundle/ruby/2.5.0/gems/activerecord-4.2.11.19/lib/active_record |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Include the HCWS2812 library */ | |
#include "HCWS2812.h" | |
/* Create an instance of the library */ | |
HCWS2812 HCWS2812; | |
void setup() | |
{ | |
/* Set the R,G,B background colours to zero */ | |
HCWS2812.SetBG(55, 55, 55); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$:.unshift(File.expand_path('../../lib', __FILE__)) | |
require 'ws2812' | |
def display(array, colours) | |
$hat.clear false | |
array.each_with_index do |row, x| | |
row.each_with_index do |value, y| | |
$hat[x, y] = colours[value] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
$:.unshift(File.expand_path('../../lib', __FILE__)) | |
require 'ws2812' | |
# Init | |
$hat = Ws2812::UnicornHAT.new | |
$hat.rotation = 90 | |
$hat.clear | |
l = Ws2812::Color.new(220, 220, 220) |
Taken from Raspberry Pi 2 User Guide by Vilros
If you connect your Pi to a television using an HDMI cable, Raspbian automatically selects a screen size that it decides will be the best for your setup. However, this is not always the highest resolution.
The configuration setting that controls how Raspbian selects the screen size is in the file /boot/config.txt
and you can adjust this setting with a text editor:
-
On the Application Launcher, click LXTerminal.
-
Type the following command and then press Enter:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ----------------------------------------------------------------------- | |
# Installs Ruby 2.3 using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
# | |
# Run from the web: | |
# bash <(curl -s raw_script_url_here) | |
# ----------------------------------------------------------------------- | |
# Set up variables |
git checkout master
git pull
git checkout <branch>
git rebase master
git push --force
git checkout master
git merge --no-ff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RSpec.configure do |config| | |
... | |
# changes the config on the backtrace display to ignore the /gems/ folder | |
config.backtrace_exclusion_patterns.push(/gems/) | |
... | |
end |
I hereby claim:
- I am limeblast on github.
- I am limeblast (https://keybase.io/limeblast) on keybase.
- I have a public key whose fingerprint is C50A 94E2 29FC 7919 E7DA A631 0CEC E5EC BC74 0642
To claim this, I am signing this object:
NewerOlder