Allowing user to set environment variable with sudo

Published on

I encountered the following error today while installing a few packages on a ubuntu server using a sudo user. “sudo: sorry, you are not allowed to set the following environment variables: DEBIAN_FRONTEND” The command I ran was: “sudo DEBIAN_FRONTEND=noninteractive apt-get install -qy git-core” I did search on google and did’nt find any direct answer for … Continue reading Allowing user to set environment variable with sudo

Set cache-control & expires headers to the content served by S3 using attachment_fu or paperclip

Published on

Using attachment_fu with S3 to save and serve data? Set cache-control headers by applying this patch to improve site performance and save some money: http://www.gozuus.com/blog/2009/03/caching-images-using-attachment_fu-and-amazon-s3/ If using PaperClip then add headers by adding: Find more info about paperclip s3 options here: http://rubydoc.info/gems/paperclip/Paperclip/Storage/S3

Github2S3: Backup Github Repositories To Amazon S3

Published on

Cross Posted from http://vinsol.com/blog Who doesn’t know GitHub now a days, its a service to host git repositories. We, at Vinsol, use GitHub extensively to host all(50+) of our git repositories. Although Github is an awesome service, we miss one feature a lot, which is ‘archiving a repository’ somewhere outside Github. This is somewhat similar … Continue reading Github2S3: Backup Github Repositories To Amazon S3