Skip to content

Instantly share code, notes, and snippets.

View prem-prakash's full-sized avatar

Camilo Hollanda prem-prakash

View GitHub Profile
@bradwestfall
bradwestfall / S3-Static-Sites.md
Last active May 22, 2024 13:44
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation
pt-BR:
views:
admin:
js:
true: Verdadeiro
false: Falso
is_present: Existe
is_blank: Não existe
date: Data ...
between_and_: Entre ... e ...
@bryanwb
bryanwb / gist:4672266
Created January 30, 2013 10:26
chef-rvm example
user 'tk'
include_recipe "rvm::user_install"
node.set['rvm']['user_installs'] = [
{
:user => 'tk',
:install_rubies => true,
:default_ruby => '1.9.3',
:rubies => [ '1.9.3' ]