Skip to content

Instantly share code, notes, and snippets.

View PelagicDev's full-sized avatar

Jordan Godwin PelagicDev

  • CompanyCam
  • Wilmington, NC
  • 15:26 (UTC -04:00)
  • X @PelagicDev
View GitHub Profile
@PelagicDev
PelagicDev / digital_ocean_setup.md
Created August 12, 2016 18:06 — forked from ChuckJHardy/digital_ocean_setup.md
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions
//
// Top Bar Variables
//
$include-html-classes: true;
$include-html-top-bar-classes: $include-html-classes;
// Background color for the top bar
$topbar-bg-color: $oil;
$topbar-bg: $topbar-bg-color;
@PelagicDev
PelagicDev / file_name.es6.jsx.erb
Created March 4, 2016 16:24
ERB image_tag in React JSX
class MyImage extends React.Component {
render () {
return (
<img src="<%= asset_url('path/to/image.png') %>" />
);
}
}
@PelagicDev
PelagicDev / fakeout.rake
Created December 16, 2015 14:05 — forked from matthutchinson/fakeout.rake
fakeout.rake - a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes
# a simple/configurable rake task that generates some random fake data for the app (using faker) at various sizes
# NOTE: requires the faker or ffaker gem
# sudo gem install faker - http://faker.rubyforge.org
# OR
# sudo gem install ffaker - http://github.com/EmmanuelOga/ffaker
require 'faker'
class Fakeout
@PelagicDev
PelagicDev / account.rb
Created October 27, 2015 15:03 — forked from bookwyrm/account.rb
Cleaning up Rails app signup with Devise and Reform
class Account < ActiveRecord::Base
has_many :users
end
@PelagicDev
PelagicDev / init.coffee
Last active August 14, 2018 13:26
atom-sync-settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
set :repository, "[email protected]:repo/repo.git"
set :user, "deploy"
set :use_sudo, false
set :scm, :git
set :keep_releases, 5
set :domain, "000.000.000.000"
set :application, "my_app"
set :rails_env, "production"
set :branch, "master"
set :deploy_to, "/var/www/#{application}"
## Capistrano v3
# /config/deploy.rb
set :application, '<site_name>' #example.com
set :use_sudo, false
set :build_dir, "build"
set :ssh_login, "<login_details>" #[email protected]
set :deploy_dir, "/var/www/#{fetch(:application)}"
namespace :middleman do