Skip to content

Instantly share code, notes, and snippets.

View despo's full-sized avatar
🌈

Despo Pentara despo

🌈
View GitHub Profile
# The videos can be found at http://programme.scottishrubyconference.com/schedule
# Usage: ruby download_scotruby_videos.rb /path/to/directory
page = "http://video2012.scotlandonrails.com"
path = ARGV.first || '.'
[
[ "Continuous Delivery - A Better Software Deployment Strategy", "D1_GH_01-Ruby1280_b.mp4" ],
[ "The Rails View: The Junk Drawer Grows Up", "D1_GH_02-Ruby1280_b.mp4" ],
[ "Perfectionists Anonymous", "D1_GH_03-Ruby1280_b.mp4" ],
[ "ElasticSearch, AMQP and Ruby; or how I learned to stop spelunking and love the logs", "D1_GH_04-Ruby1280_b.mp4" ],
@despo
despo / retrieve_by_area.sh
Created August 6, 2012 20:50
cyprus-street-names api
curl http://cyprus-street-names.herokuapp.com/area/:area_name -H 'accept: application/json'
@despo
despo / the_command_line_is_your_friend.md
Last active December 16, 2015 11:59
Rails Girls London lightning talk - The command line is your friend

Rails Girls London logo Rails Girls London - 19th-20th April 2013

Commandline basics

Basic filestystem structure

.
|____home

| |____despo

@despo
despo / rails_cl_basics.png
Last active December 16, 2015 12:08
image center
Not much to see here
@despo
despo / ada_lovelace.jpg
Last active December 27, 2015 12:49
http://codebar.io - HTML & CSS - Lesson 3
ada_lovelace.jpg
@despo
despo / cobol.jpg
Last active December 28, 2015 04:39
codebar-html-lesson-4
cobol.jpg
@despo
despo / anita-bottom.jpg
Last active December 28, 2015 21:38
html-lesson-5
anita-bottom.jpg
@despo
despo / ada_lovelace.jpg
Last active December 29, 2015 13:49
advanced-html5
ada_lovelace.jpg
@despo
despo / deferred_garbage_collection.rb
Created December 13, 2013 11:31
Deferred Garbage Collection
class DeferredGarbageCollection
DEFERRED_GC_THRESHOLD = (ENV['DEFER_GC'] || 15.0).to_f
@@last_gc_run = Time.now
def self.start
GC.disable if DEFERRED_GC_THRESHOLD > 0
end
...
# ==> Configuration for any authentication mechanism
# Configure which keys are used when authenticating a user. The default is
# just :email. You can configure it to use [:username, :subdomain], so for
# authenticating a user, both parameters are required. Remember that those
# parameters are used only when authenticating and not when retrieving from
# session. If you need permissions, you should implement that in a before filter.
# You can also supply a hash where the value is a boolean determining whether
# or not authentication should be aborted when the value is not present.
config.authentication_keys = [ :login ]