Skip to content

Instantly share code, notes, and snippets.

View gzigzigzeo's full-sized avatar

Victor Sokolov gzigzigzeo

  • Evil Martians
  • Georgia
View GitHub Profile
# DRAFT
module CarrierWave::Meta
extend ActiveSupport::Concern
included do
before :cache, :store_original_meta
[:width, :height, :content_type, :size, :filename].each do |m|
define_method :"meta_#{m}" do |*args|
style = args.first
module CarrierWave::Conditional
extend ActiveSupport::Concern
module ClassMethods
def process_if(*args)
original_args = args.dup
options = args.extract_options!
c_true = options.delete(:if)
c_false = options.delete(:if)
raise "No condition specified for process_if specified" if c_true.nil? && c_false.nil?
# Ебический, ебический модуль эмуляции динамических роутов из базы.
# Альтернатива reload_routes!
# Это блять пиздец ебануться какой ебический модуль.
# Но зато - теперь будем клонировать.
# Нужно его гемофицировать.
module Megatron
class Rewrite
REWRITE_CACHE_KEY = 'megatron.rewrite_cache'
HELPERS_CACHE_KEY = 'megatron.helpers_cache'
013-03-15 22:46:35.647 Softshell[57904:303] Ignoring SIGPIPE
2013-03-15 22:46:35.652 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x8006 VID: 0x05ac
2013-03-15 22:46:35.653 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x8006 VID: 0x05ac
2013-03-15 22:46:35.653 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x2514 VID: 0x0424
2013-03-15 22:46:35.654 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x2514 VID: 0x0424
2013-03-15 22:46:35.654 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x4500 VID: 0x0a5c
2013-03-15 22:46:35.654 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x1006 VID: 0x05ac
2013-03-15 22:46:35.655 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x850b VID: 0x05ac
2013-03-15 22:46:35.655 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x8242 VID: 0x05ac
2013-03-15 22:46:35.656 Softshell[57904:303] ignoring USB Device "(null)" PID: 0x8403 VID: 0x05ac
diff --git a/Gemfile b/Gemfile
index f66e17d..f1aced8 100755
--- a/Gemfile
+++ b/Gemfile
@@ -1,8 +1,8 @@
source 'http://rubygems.org'
-gem 'bundler'
-gem 'rails', '3.2.13'
Anonymous UUID: F47D6DFE-F572-A0FF-2FA1-C6C25966CBE3
Fri Mar 21 00:55:02 2014
panic(cpu 2 caller 0xffffff7f99c6cfb0): "GPU Panic: [<None>] 3 3 7f 0 0 0 0 3 : NVRM[0/1:0:0]: Read Error 0x00000100: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff812ba93000 0x0a5480a2, D0, P3/4\n"@/SourceCache/AppleGraphicsControl/AppleGraphicsControl-3.4.35/src/AppleMuxControl/kext/GPUPanic.cpp:127
Backtrace (CPU 2), Frame : Return Address
0xffffff8107d13140 : 0xffffff8017822fa9
0xffffff8107d131c0 : 0xffffff7f99c6cfb0
0xffffff8107d13290 : 0xffffff7f983d5eab
0xffffff8107d13350 : 0xffffff7f9849f49a
0xffffff8107d13390 : 0xffffff7f9849f50a
def build_query(options = {})
query = {
sort: sort(options),
query: {
filtered: {
query: {
bool: {
must: address_or_keywords(options),
should: fulltext(options)
}
class DealsController < ApplicationController
def show
Deals::ShowAction.new(self).call
end
end
class Deals::ShowAction < SimpleDelegator
def call
render ...
end
main:
postgres=# select * from users limit 1;
user_id | username | traits | properties | status | source
---------+-------------------------------+--------+------------+----------------------+----------
1 | @teleport-access-approval-bot | | | {"is_locked": false} | TELEPORT
(1 row)
chore/unique_key: