Skip to content

Instantly share code, notes, and snippets.

View danieltamiosso's full-sized avatar

Daniel Tamiosso danieltamiosso

View GitHub Profile
@ehnischiguti
ehnischiguti / transaction_report.txt
Created September 5, 2017 22:43
Python script to simulate transaction in Pagar.me's environment.
** Recipient_1 **
+---------------+----------+-------+--------------------+--------------+------------+----------------+-------------------------+
| installment | amount | fee | anticipation_fee | net_amount | duration | payment_date | original_payment_date |
|---------------+----------+-------+--------------------+--------------+------------+----------------+-------------------------|
| 1 | 3743 | 142 | 0 | 3601 | 0 | 2017-10-06 | 2017-10-06 |
| 2 | 3755 | 148 | 0 | 3607 | 0 | 2017-11-07 | 2017-11-07 |
| 3 | 3755 | 148 | 0 | 3607 | 0 | 2017-12-05 | 2017-12-05 |
| 4 | 3755 | 148 | 0 | 3607 | 0 | 2018-01-04 | 2018-01-04 |
| 5 | 3755 | 148 | 0 | 3607 | 0 | 2018-02-0
yum install -y libpng
yum install -y libjpeg
yum install -y openssl
yum install -y icu
yum install -y libX11
yum install -y libXext
yum install -y libXrender
yum install -y xorg-x11-fonts-Type1
yum install -y xorg-x11-fonts-75dpi
@rob-brown
rob-brown / ElixirConf2014.md
Last active December 4, 2020 05:38
Notes from ElixirConf 2014

ElixirConf 2014

Dave Thomas—Opening Keynote

Twitter | Slides

Think different(ly)

Get out of your rut and learn new ways to think.

@pcreux
pcreux / Gemfile
Last active December 11, 2023 20:24
Fast Rails + Heroku Configuration
group :production do
gem 'unicorn'
# Enable gzip compression on heroku, but don't compress images.
gem 'heroku-deflater'
# Heroku injects it if it's not in there already
gem 'rails_12factor'
end
@jeffreyiacono
jeffreyiacono / gist:1114452
Created July 29, 2011 18:41 — forked from dhh/gist:1014971
Use concerns to keep your models manageable (fix unscoped issue w/ trashed scope)
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
)
end
end
@ryanb
ryanb / rails_3_1_rc4_changes.md
Created May 6, 2011 01:10
The Changelogs for Rails 3.1 Beta 1

Railties 3.1 RC4

  • The new rake task assets:clean removes precompiled assets. [fxn]

  • Application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle. [fxn]

  • Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]

  • Template generation for jdbcpostgresql #jruby [Vishnu Atrai]