This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The following url will be available : | |
# getting the original image : http://your-domain.tld/og/{bucketname}/{imagepath} | |
# sizing an image (here, will fit in a 200x200px area) : http://your-domain.tld/t/200x200/{bucketname}/{imagepath} | |
# important part : set the cache folder (here /tmp/nginx-images) and the cache name (here thumbnail_cache) | |
proxy_cache_path /tmp/nginx-images levels=1:2 keys_zone=thumbnail_cache:16M inactive=60d max_size=200M; | |
server { | |
listen 80; | |
server_name your-domain.tld; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_attached_file :image, | |
storage: :fog, | |
fog_credentials: "#{Rails.root}/config/gce.yml", | |
fog_directory: ENV["GOOGLE_CLOUD_STORAGE_BUCKET"], | |
:fog_host => Proc.new { |image| "https://etapes#{ image.instance.id % 4}.imgix.net" }, | |
:path => ":sited_path/:named_path.:extension", | |
:url => ":sited_path/:named_path.:extension" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
History.Adapter.bind window, 'statechange', -> | |
$.ajax | |
url: url | |
type: "GET" | |
dataType: "script" | |
success: (data) -> | |
... replace previous content with new content ... | |
$(document).on "click", "a", (e) -> | |
e.preventDefault() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception `Errno::ENOENT' at /Users/bbnnt/.rvm/gems/ruby-2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:713 - No such file or directory @ rb_sysopen - /Users/bbnnt/Desktop/sites/api.dee.mx/tmp/pids/unicorn.pid | |
I, [2016-04-17T22:07:57.757992 #10186] INFO -- : Refreshing Gem list | |
Exception `LoadError' at /Users/bbnnt/.rvm/gems/ruby-2.3.0/gems/concurrent-ruby-1.0.1/lib/concurrent/utility/native_extension_loader.rb:38 - cannot load such file -- concurrent/extension | |
Exception `LoadError' at /Users/bbnnt/.rvm/gems/ruby-2.3.0/gems/concurrent-ruby-1.0.1/lib/concurrent/utility/native_extension_loader.rb:43 - cannot load such file -- concurrent/2.3/extension | |
Exception `NameError' at /Users/bbnnt/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/psych/class_loader.rb:68 - uninitialized constant Object::BigDecimal | |
Exception `NameError' at /Users/bbnnt/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/psych/core_ext.rb:17 - method `to_yaml' not defined in Object | |
Exception `NameError' at /Users/bbnnt/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/ps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Prefix `bundle` with `exec` so unicorn shuts down gracefully on SIGTERM (i.e. `docker stop`) | |
exec bundle exec unicorn -c config/containers/unicorn.rb -E $RAILS_ENV; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db: | |
env_file: .env | |
# use the preferred version of the official Postgres image | |
# see https://hub.docker.com/_/postgres/ | |
image: postgres:9.4.5 | |
# persist the database between containers by storing it in a volume | |
volumes: | |
- deemx-postgres:/var/lib/postgresql/data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.3.0 | |
# Install essential Linux packages | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql-client locales | |
# Define where our application will live inside the image | |
ENV RAILS_ROOT /var/www/deemx | |
# Create application home. App server will need the pids dir so just create everything in one shot | |
RUN mkdir -p $RAILS_ROOT/tmp/pids |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Volumes/Untitled/Users/administrateur/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- /Volumes/Untitled/Users/administrateur/Library/RubyMotion/command/motion-upload.rb (LoadError) | |
from /Volumes/Untitled/Users/administrateur/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /Library/RubyMotion/lib/motion/project/command.rb:84:in `block in <top (required)>' | |
from /Library/RubyMotion/lib/motion/project/command.rb:84:in `each' | |
from /Library/RubyMotion/lib/motion/project/command.rb:84:in `<top (required)>' | |
from /Volumes/Untitled/Users/administrateur/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /Volumes/Untitled/Users/administrateur/.rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' | |
from /Library/RubyMotion/lib/motion/command.rb:168:in `<top (required)>' | |
from /Volumes/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.github.facebook.watchman</string> | |
<key>Disabled</key> | |
<false/> | |
<key>ProgramArguments</key> | |
<array> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Weather Icons 2.0.8 | |
* Updated September 19, 2015 | |
* Weather themed icons for Bootstrap | |
* Author - Erik Flowers - [email protected] | |
* Email: [email protected] | |
* Twitter: http://twitter.com/Erik_UX | |
* ------------------------------------------------------------------------------ | |
* Maintained at http://erikflowers.github.io/weather-icons | |
* |