Skip to content

Instantly share code, notes, and snippets.

View quatermain's full-sized avatar

Oliver Kriška quatermain

  • Slovakia
View GitHub Profile
➜ test ruby -v
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.1.0]
➜ test gem install rails
Fetching: thread_safe-0.3.3.gem (100%)
Successfully installed thread_safe-0.3.3
Fetching: minitest-5.3.3.gem (100%)
Successfully installed minitest-5.3.3
Fetching: tzinfo-1.1.0.gem (100%)
Successfully installed tzinfo-1.1.0
Fetching: i18n-0.6.9.gem (100%)
3.73
3.73
3.73
3.73
3.73
3.73
3.73
3.73
3.73
3.73
@quatermain
quatermain / base.rb
Created May 7, 2015 10:25
Service layer
# app/services/pages/base.rb
module Pages
class Base
include Service
def self.call(account: nil, user: nil, page: nil, param: nil)
new(account: account, user: user, page: page).call( param: param)
end
def initialize(account: nil, user: nil, page: nil)
When Error message
Nov 09, 2015 20:30:46 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 09, 2015 20:27:24 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 09, 2015 20:05:09 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 09, 2015 19:35:32 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 09, 2015 18:00:51 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 09, 2015 16:04:19 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 06, 2015 19:45:24 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
Nov 06, 2015 00:55:05 +0100 Pusher::HTTPError: execution expired (HTTPClient::ConnectTimeoutError)
<!--<aside class="envor-widget ">-->
<!--<div class="envor-widget-inner">-->
<!--<%= link_to image_tag('festival-baner-v1-600x400-jaspravim.jpg'), 'http://festivalnomadov.sk/', target: '_blank' %>-->
<!--</div>-->
<!--</aside>-->
<aside class="envor-widget ">
<div class="envor-widget-inner">
<%= link_to image_tag('cn_papuanske_srdce.jpeg'), 'https://www.startovac.cz/projekty/papuanske-srdce/', target: '_blank' %>
</div>
/*
Redactor II
Version 1.2.3
Updated: March 29, 2015
http://imperavi.com/redactor/
Copyright (c) 2009-2016, Imperavi LLC.
License: http://imperavi.com/redactor/license/
@quatermain
quatermain / minio.ex
Created July 25, 2018 12:19
Storage adapter for minio
defmodule Storage.Adapters.Minio do
alias ExAws.S3
@behaviour Storage.Adapter
defp root, do: Application.get_env(:storage, Storage.Adapters.Minio)[:root]
defp host, do: Application.fetch_env!(:storage, Storage.Adapters.Minio)[:host]
defp bucket, do: Application.fetch_env!(:ex_aws, :s3)[:bucket]
def path(components) when is_list(components) do