Skip to content

Instantly share code, notes, and snippets.


Logan Rice loganrice

View GitHub Profile
loganrice / .dockerignore
Created Mar 21, 2018 — forked from davidderus/.dockerignore
Docker + Rails + Puma + Postgres + Nginx
View .dockerignore
View gist:dc73f3bd33d3c0b48365
version :thumb do
def full_filename(for_file)
super(for_file).chomp(File.extname(super(for_file))) + '.jpg'
def convert_thumb_to_jpg
manipulate! do |image|
image.format 'jpg'
landscape = "75x56"
loganrice / uploader
Created May 30, 2015
convert pdf to png
View uploader
# encoding: utf-8
class VehicleUploader < CarrierWave::Uploader::Base
# include CarrierWave::RMagick
include CarrierWave::MiniMagick
version :to_png do
process :convert_to_single_png
def convert_to_single_png
loganrice / gist:c7549bda2905666d9780
Created Sep 26, 2014
Heroku Deployment: NameError: uninitialized constant CarrierWave::Storage::Fog
View gist:c7549bda2905666d9780
rake deploy:staging
>> Updating Repo Tag: staging
Everything up-to-date
>> Pushing refs/tags/staging to Heroku
View gist:0dc0ec649ba8f0c7e564
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/loganrice/.rbenv/versions/2.0.0-p353/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary