Skip to content

Instantly share code, notes, and snippets.

View LimeBlast's full-sized avatar
📈
Setting my goals for 2019

Daniel Hollands LimeBlast

📈
Setting my goals for 2019
View GitHub Profile
@LimeBlast
LimeBlast / .gitconfig
Created April 27, 2012 14:18 — forked from lukearmstrong/.gitconfig
My settings, including aliases and colour settings.
[alias]
addr = add -A
ci = commit
co = checkout
lg = log --graph --decorate --branches --abbrev-commit
st = status -sb
ds = diff -- staged
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
[color]
ui = true
@LimeBlast
LimeBlast / activation_email_spec.rb
Last active August 29, 2015 14:18 — forked from tuomasj/activation_email_spec.rb
`have_link_ends_with` matcher
require 'spec_helper'
describe "Activation Email" do
it "confirms the email when user clicks the confirmation link on activation email" do
register_new_user("john.smith@example.com", "adobe password", "adobe password")
activation_token = User.last.activation_code
expect( open_last_email.default_part_body ).to have_link_with_ends_with(activation_token)
visit activation_path(activation_token)
expect(page).to have_content( "Your email has been confirmed.")
end
@LimeBlast
LimeBlast / keybase.md
Created April 30, 2015 13:47
keybase.md

Keybase proof

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:

@LimeBlast
LimeBlast / spec_helper.rb
Last active December 4, 2015 10:24
change the config on the rspec backtrace display to ignore the /gems/ folder
RSpec.configure do |config|
...
# changes the config on the backtrace display to ignore the /gems/ folder
config.backtrace_exclusion_patterns.push(/gems/)
...
end
@LimeBlast
LimeBlast / rebase.md
Last active November 5, 2015 16:26
How to rebase a branch into master
  • git checkout master
  • git pull
  • git checkout <branch>
  • git rebase master
  • git push --force
  • git checkout master
  • git merge --no-ff
@LimeBlast
LimeBlast / install_ruby_rpi.sh
Created February 5, 2016 20:54 — forked from blacktm/install_ruby_rpi.sh
A Bash script to install Ruby 2.3 on the Raspberry Pi (Raspbian)
#!/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
@LimeBlast
LimeBlast / instructions.md
Last active October 5, 2021 01:46
Configuring the TV Service on Raspberry Pi

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:

  1. On the Application Launcher, click LXTerminal.

  2. Type the following command and then press Enter:

#!/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)
#!/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
@LimeBlast
LimeBlast / 01-install.md
Last active April 2, 2016 15:39
Steps to set-up a fresh Raspberry Pi