Skip to content

Instantly share code, notes, and snippets.

View myrne's full-sized avatar

Myrne Stol myrne

  • The Netherlands
View GitHub Profile
@myrne
myrne / dropbox.rake
Created October 11, 2011 21:23 — forked from otobrglez/dropbox.rake
Rake task for moving Heroku PostgreSQL backups to Dropbox (Rails)
# By Oto Brglez - @otobrglez
# Rake task. Put in your (lib/tasks) folder of your Rails application
# Execute with "rake dropbox:backup"
# Configuration must be inside config/dropbox.yml file
namespace :dropbox do
desc "Backup production database to dropbox"
task :backup do
@myrne
myrne / Rakefile.rb
Created October 21, 2011 12:54 — forked from carlhoerberg/Rakefile.rb
How to do automatic backup with Heroku PGBackups and Heroku Cron. http://carlhoerberg.com/automatic-backup-of-heroku-database-to-s3
require 'aws/s3'
require 'heroku'
require 'heroku/command'
require 'heroku/command/auth'
require 'heroku/command/pgbackups'
task :cron do
class Heroku::Auth
def self.client
Heroku::Client.new ENV['heroku_login'], ENV['heroku_passwd']
@myrne
myrne / node-trace-txmt.sh
Created April 8, 2012 13:35 — forked from x1B/node-trace-txmt.sh
Add textmate links to Node.JS stacktraces.
#! /bin/sh
sed -E -e 's_[(]?(/[^:]*/([^ ]*)):([0-9]+):([0-9]*)[)]?_[\2:\3:\4] txmt://open/?url=file://\1\&line=\3\&column=\4_g'
@myrne
myrne / compiled.js
Created August 22, 2013 18:17 — forked from anonymous/compiled.js
Source map does work when serving these files over HTTP (or HTTPS). It doesn't work when loading them directly from disk (using `file://`).
// Generated by CommonJS Everywhere 0.9.2
(function (global) {
function require(file, parentModule) {
if ({}.hasOwnProperty.call(require.cache, file))
return require.cache[file];
var resolved = require.resolve(file);
if (!resolved)
throw new Error('Failed to resolve module ' + file);
var module$ = {
id: file,