Skip to content

Instantly share code, notes, and snippets.

@nevadajames
nevadajames / gulpfile.js
Last active June 1, 2017 23:19
Gulpfile for some useful functions
var gulp= require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync').create();
var cssnano = require('gulp-cssnano');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var imagemin = require('gulp-imagemin');
@Papillard
Papillard / rails-kickoff.md
Last active December 1, 2021 02:07
Kick-off cheat sheet to set your Rails app @lewagon

This is a kick-off roadmap for the lead-developer, in charge of setup / deployment / collaboration.

Rails new

Create the project locally and on Github

$ rails new YOUR_APP_NAME -T --database=postgresql
$ cd YOUR_APP_NAME
$ git init
@derrek
derrek / carrier_wave_dreamobjects.md
Last active February 8, 2017 00:50
CarrierWave Fog configuration for a Public Bucket on DreamObjects with Rails 4.2

As of 2015-01-22 this is one way of setting up Carrierwave to work with DreamObjects. The dreamobjects docs are woefully out of date useing AWS::S3 gem which fails spectacularly on Rails 4.2 ruby 2.1 (see marcel/aws-s3#98 ).

DreamObjects GUI

In the DreamObjects web GUI, if you don't already have a bucket, click "create bucket". Name the bucket. For this example the bucket is named testing-bucket. Toggle the "private" switch to "public".

For the user enclosing the bucket you just created click on the "keys" button. This will reveal the public key. Click on "show secret key" (to the right of the public key in hardly legible light gray). This will reveal the private key.

Rails App