Skip to content

Instantly share code, notes, and snippets.

View edipofederle's full-sized avatar
🏠
Working from home

Édipo Féderle edipofederle

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am edipofederle on github.
  • I am edipofederle (https://keybase.io/edipofederle) on keybase.
  • I have a public key ASDtGuMTyvvJjRXfjrla-Q08bX4cCFC-Sb9wMB-o7SKk1Qo

To claim this, I am signing this object:

require 'set'
class LinkedList
include Enumerable
def initialize(head, tail = nil)
@head, @tail = head, tail
end
def <<(item)
(irb):5: [BUG] Segmentation fault at 0x0000000000000208
ruby 3.1.0dev (2021-05-08T21:45:30Z master 406ae7fb03) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0022 p:---- s:0112 e:000111 CFUNC :[]
c:0021 p:0022 s:0106 E:0026e8 EVAL (irb):5 [FINISH]
c:0020 p:---- s:0102 e:000101 CFUNC :eval
c:0019 p:0020 s:0094 e:000093 METHOD /home/edipo/ruby/local/lib/ruby/3.1.0/irb/workspace.rb:116
c:0018 p:0059 s:0086 e:000084 METHOD /home/edipo/ruby/local/lib/ruby/3.1.0/irb/context.rb:450
c:0017 p:0161 s:0077 e:000076 BLOCK /home/edipo/ruby/local/lib/ruby/3.1.0/irb.rb:567
RS ACEGUÁ VEREADOR GLECIO DOS SANTOS RODRIGUES ***.079.790-** R$ 383.830,00 Auxílio Residual de R$ 300 (MP 1000-2020) Antes da decisão do TCU Solicitou no aplicativo da Caixa
RS ACEGUÁ VEREADOR DANIELI BAUMHARDT PÉREZ ***.915.330-** R$ 380.000,00 Auxílio Residual de R$ 300 (MP 1000-2020) Após decisão do TCU Estava no Cadastro Único
RS ACEGUÁ VEREADOR JEFERSON RICARDO CEZAR PIRES ***.796.600-** R$ 306.785,58 Auxílio Emergencial de R$ 600 (Lei 13.982-2020) Após decisão do TCU Solicitou no aplicativo da Caixa
RS AGUDO VEREADOR OTAVIO HELENO SCHUMACHER ***.337.050-** R$ 477.692,63 Auxílio Residual de R$ 300 (MP 1000-2020) Após decisão do TCU Solicitou no aplicativo da Caixa
RS AGUDO VEREADOR MARCUS MACIEL ACHTERBERG ***.536.250-** R$ 341.436,32 Auxílio Emergencial de R$ 600 (Lei 13.982-2020) Após decisão do TCU Solicitou no aplicativo da Caixa
RS ALECRIM VEREADOR LÍRIO HAMMERSCHMITT ***.285.290-** R$ 412.283,57 Auxílio Residual de R$ 300 (MP 1000-2020) Após decisão do TCU Solicitou no apli
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvqwiE9vtlVI9mWWyh5fQimvGSInjBOYfM89wvgP6cEnLYHjR8ERIsgqQa1qxEb1QCCcK7TCzg9fFNEGWe/0DW0PHwVVfSkc3yiXWnwkg4ZCx63zkc+E9sl98VonKXFp1nc7PxlKRHfnyg6HeGePGUiN6O6jaUgM/fbLWBWOFIczqQR9ux0dYeRickjmhhx3YHZWrmmdP5eXa+FT0VKrLda9lLlCTtXJDE3yX9+dqkCiJ3bf62GoBFXWsjoUGXr+jh6szeXMCDKvX+kn1OhAYgwEA4Q8qLC5cLqXdOr+NoF58UkHElslAULCuu5xN8+368VG0/GONbdHjR5GO0wkcN [email protected]
# for future bookings
ActiveRecord::Base.logger.level = 1 # disable query logs
bookings = Booking.where('check_out >= ?', Time.now);nil
bookings.each do |booking|
city = booking&.property&.city
new_value = booking.decorate.check_out.change(hour: 11, min: 0)
booking.guest_check_out_at = city ? city.utc_time(new_value) : new_value
@edipofederle
edipofederle / update-check-in-time-based-on-arrival-time.rb
Created October 8, 2018 18:26
Update check in time based on arrival time mandatory field
guest_arrival_time_id = ServiceField.where(name: 'guest_arrival_time').first.id
mandatory_fields_arrival_time = TaskField.where(service_field_id: guest_arrival_time_id).where.not(task_fields: {value: nil}).where.not(task_fields: {value: ""}).distinct
mandatory_fields_arrival_time.each do |arrival_time|
booking = arrival_time.task.booking
hour = Time.parse(arrival_time.value).hour
min = Time.parse(arrival_time.value).min
booking.check_in.change(hour: hour, min: min)
booking.save

$LOAD_PATH

$LOAD_PATH.push('/Users/edipofederle/work/requires')

load('load.rb')
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC0EZx4LX/STwFVXkrvj9cdNsUVHqA+1rArHSyuBqe+uSzjk9QcdeGruQowPGBYHNLjJ6GW+HH3xRwuhoNQblkHwr3yQo4SOe3rK3Suq3SkN15jPOSnaZHqx0+l+ZG/1EJCVV4k148QvAKmY/cVlp01sIhvHq7GJjYxCARerIXmicnAvWHvfMi8b5rOWDBS2U7IR89DuOwm1rdI3XjKe0AEyJSNjPvKVdvqrHqcOamDWin6NSODfS/by3arnHLGxVsT13EL6tixP+1XPrHay94OoYmDYQLHifn0YGRyQ+4uSn9iVGQe08ywluN77oa1VAoVEFA9hVypCPPrc6xH6qfJG8HIHNTQelPOqbEcBJpBdorAH1FReOkxTK0fKN79AB0GZlBN1SSSE/r+GxpG7tGH/peq5zCB+z4bZThWCLi1PGsVHFGkA+bLiCFMKyTymIjLZF6SpIr7hDCWxMAT//P1/R9tCbWsotBQFNOLqssCwVXNFRt4c/iYKGHw4HTi0ZT+DoGhS8oxUQO1JmiVmwWFv5OENHgYSHFCxgnihSkv5SXarU39satdcK+d1hik3ZUhMwMN0xUUY6YrygZZ0GD/6EHun9pGa2E5UvUWY3HJwc89HBkoVU7KaG27IAr7Kub+wxZYkz91ptGdeXZi6Rv3U9CzYMUzoKeWTW0mJXDVsQ== [email protected]