Skip to content

Instantly share code, notes, and snippets.

View rtacconi's full-sized avatar

Riccardo Tacconi rtacconi

View GitHub Profile
@nagelflorian
nagelflorian / buckets.tf
Last active February 12, 2024 07:44
Terraform config for static website hosting on AWS
# AWS S3 bucket for static hosting
resource "aws_s3_bucket" "website" {
bucket = "${var.website_bucket_name}"
acl = "public-read"
tags {
Name = "Website"
Environment = "production"
}
@saten
saten / quick_route_tester.rb
Created August 17, 2012 09:29
Enumerates routed controllers and actions and checks if they exist in the code (simple and quick, without corner cases). Tested on Rails 3.2.8
Rails.application.eager_load!
all_routes = Rails.application.routes.routes
controllers=ApplicationController.descendants
#controller_names = controllers.collect {|c| c.to_s.underscore.sub('_controller','') }
controller_names={}
controllers.each {|c|
controller_names[c.to_s]=c.to_s.underscore.sub('_controller','')
}.size
@Overbryd
Overbryd / Che Guevara Fy
Created June 1, 2011 22:29
Code Challenge #1
Btw, I have recently started a small code battle upon an easy task.
The goal is to improve your self estimation skill and to code something minimalistic in the shortest time possible.
If you want to join the battle, just do the following:
1) Check the briefing: "Create a webservice that is generating the 'Che Guevara Effect' on an uploaded picture"
I have already done my job and implemented an working version of this here: http://che-guevara-fy.heroku.com/
2) You can accept the challenge by giving an upfront estimate on how much time you think is needed to implement and deploy the briefing.