Skip to content

Instantly share code, notes, and snippets.

View ckreutz's full-sized avatar

Christian ckreutz

View GitHub Profile
@jmoe
jmoe / fastly.rake
Last active August 29, 2015 14:06
Quick rake task to automate setting CORS headers on fastly
namespace :fastly do
desc "set fastly cors headers to fix chrome/firefox font loading issues"
task allow_cors: :environment do
# check for the Cors Allow header
versions = Yajl.load(Excon.get("https://api.fastly.com/service/#{ENV['FASTLY_SERVICE_ID']}/version",
:headers => {'Fastly-Key'=>ENV['FASTLY_API_KEY']}).body)
last_version = versions.last['number']
@nloko
nloko / rdio_pl_export.js
Last active March 9, 2019 14:51
Export Rdio playlist as CSV
javascript:(function() {
var bookmarklet = {
init: function() {
this.parse();
},
parse: function() {
page = "";
/* you must be viewing songs ie. http://www.rdio.com/people/nloko/collection/songs/
when exporting a collection and this will only export the songs loaded in view,
@pama
pama / devise.pt.yml
Last active August 20, 2023 12:07
European Portuguese translation for devise
# Additional translations at https://github.com/heartcombo/devise/wiki/I18n
# European Portuguese translations for devise
#
# The translation does not respect the 1990 agreement
pt:
devise:
confirmations:
confirmed: "A sua conta foi confirmada com sucesso."
send_instructions: "Dentro de alguns minutos irá receber um e-mail com instruções para confirmar a sua conta."