Skip to content

Instantly share code, notes, and snippets.

View tvdeyen's full-sized avatar
🎧

Thomas von Deyen tvdeyen

🎧
View GitHub Profile
@phoet
phoet / acceptance_spec_helper.rb
Last active December 23, 2015 19:29
don't put all your stuff in /spec
require 'simplecov'
SimpleCov.command_name "acceptance"
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'capybara/rails'
require 'capybara/poltergeist'
@jlyonsmith
jlyonsmith / IAM_Backup_User_Policy.json
Last active September 24, 2016 22:43
Script and support files for backing up Redmine database to AWS S3 bucket. Replace 'xxx' with correct values.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::xxx-redmine-backups"
@tvdeyen
tvdeyen / _tinymce_enable.html.erb
Created April 10, 2015 15:50
Enable Alchemy CMS build in TinyMCE for Spree text areas.
<!-- app/views/admin/shared/_tinymce_enable.html.erb -->
<script charset="utf-8">
var tinyMCEPreInit = {
base: '<%= asset_path('tinymce') %>',
suffix: '.min'
};
$(function() {