Skip to content

Instantly share code, notes, and snippets.

View eboskma's full-sized avatar
💭
‮olleH

Erwin Boskma eboskma

💭
‮olleH
View GitHub Profile

Keybase proof

I hereby claim:

  • I am eboskma on github.
  • I am eboskma (https://keybase.io/eboskma) on keybase.
  • I have a public key whose fingerprint is BB88 68C0 A141 71EC 3CED FDA7 8A32 C109 741A 30EA

To claim this, I am signing this object:

# Use Markdown instead of rdoc
remove_file "README.rdoc"
create_file "README.md", "TODO"
# Gemfile
add_source 'https://rails-assets.org'
gem 'haml-rails'
gem 'redcarpet'
gem 'simple_form'
@eboskma
eboskma / bootstrap_pager_renderer.rb
Created October 21, 2013 20:24
Bootstrap pager renderer for will_paginate
class BootstrapPagerRenderer < WillPaginate::ActionView::LinkRenderer
protected
def gap
text = @template.will_paginate_translate(:page_gap) { "&hellip;" }
%{<li class="disabled"><a>#{text}</a></li>}
end
def next_page
@eboskma
eboskma / HowToOTGFast.md
Last active March 7, 2019 09:01 — forked from gbaman/HowToOTGFast.md
Simple guide for setting up OTG modes on the Raspberry Pi Zero, the fast way!

Setting up Pi Zero OTG - The quick way (No USB keyboard, mouse, HDMI monitor needed)

More details - http://blog.gbaman.info/?p=791

For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt file dtoverlay=dwc2 on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh in the SD card as well. By default SSH i