Skip to content

Instantly share code, notes, and snippets.

View nelyj's full-sized avatar
👁️
25/8

Nelson Jiménez nelyj

👁️
25/8
View GitHub Profile
@nelyj
nelyj / ssl_puma.sh
Created April 23, 2019 04:32 — forked from nathancolgate/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key
$ cd ~/.ssh
$ openssl genrsa -des3 -passout pass:x -out lvh.me.pass.key 2048
# 2) Generate RSA key
$ openssl rsa -passin pass:x -in lvh.me.pass.key -out lvh.me.key
# 3) Get rid of private key
$ rm lvh.me.pass.key
@nelyj
nelyj / orders_controller_spec.rb
Created August 22, 2019 07:08 — forked from chsh/orders_controller_spec.rb
RSpec controller example
require 'spec_helper'
# This spec was generated by rspec-rails when you ran the scaffold generator.
# It demonstrates how one might use RSpec to specify the controller code that
# was generated by Rails when you ran the scaffold generator.
#
# It assumes that the implementation code is generated by the rails scaffold
# generator. If you are using any extension libraries to generate different
# controller code, this generated spec may or may not pass.
#
https://taylorpearson.me/luck/
https://taylorpearson.me/luck/
Resultado mandatos PAC - Carga del {day} de {month}
Estimados,
Adjunto resumen de carga PAC {day} de {month},
De un total de {total_installments_amount} cuotas a cobrar, se recaudaron un total de {paid_installment_amount} por un monto de {paid_amount} pesos.
(Equivalente a un {successful_percent}%)
Por otro lado tenemos un rechazo del {failure_percent_estado}% por cuotas cargadas a cuentas del banco estado (SS)
default: "%-d/%-m/%Y"
long: "%-d de %B de %Y"
short: "%-d de %B de %Y"
@nelyj
nelyj / clear-sidekiq-jobs.sh
Created August 19, 2021 21:14 — forked from wbotelhos/clear-sidekiq-jobs.sh
Clear Sidekiq Jobs
require 'sidekiq/api'
# 1. Clear retry set
Sidekiq::RetrySet.new.clear
# 2. Clear scheduled jobs
Sidekiq::ScheduledSet.new.clear