Skip to content

Instantly share code, notes, and snippets.

View esmerino's full-sized avatar

José Esmerino esmerino

View GitHub Profile
Map data:
[{
latitude: 42.54222297286856,
longitude: -83.15328067301644,
label: "Clawson Skatepark",
tooltip: "<strong>Clawson Skatepark</strong>
<p>Skatepark of Haifa is a vibrant and popular recreational facility for skateboarders and BMX riders located in the beautiful city of Haifa, Israel. Nestled amidst stunning natural surroundings, this state-of-the-art skatepark offers a thrilling and dynamic space for individuals of all ages and skill levels to enjoy their favorite extreme sports.</p>"
}]
@esmerino
esmerino / gist:c03d587670680a5d52eb01260796bcbb
Created April 17, 2023 13:54 — forked from r5v9/gist:3a997657eda328e78d0d
O Essencial - Mário de Andrade
Contei meus anos e descobri que terei menos tempo para viver daqui para a frente
do que já vivi até agora.
Tenho muito mais passado do que futuro.
Sinto-me como aquele menino que recebeu uma bacia de cerejas. As primeiras,
ele chupou displicente, mas percebendo que faltam poucas, rói o caroço.
Já não tenho tempo para lidar com mediocridades.
CAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
def migration_ts
sleep(1)
Proc.new { Time.now.strftime("%Y%m%d%H%M%S") }
end
def copy_from_repo(filename, opts={})
repo = "https://raw.githubusercontent.com/matteolc/rails-api-template/master/"
source_filename = filename
destination_filename = filename
destination_filename = destination_filename.gsub(/create/, "#{migration_ts.call}_create") if opts[:migration_ts]
[Unit]
Description=Advanced key-value store
After=network.target
Documentation=http://redis.io/documentation, man:redis-server(1)
[Service]
Type=forking
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --supervised systemd --daemonize no
ExecStop=/bin/kill -s TERM $MAINPID
PIDFile=/var/run/redis/redis-server.pid
https://rutracker.org/
https://dytt8.net/
https://www.elitetorrent.biz/
https://www.torrent9.uno/
http://yts.am/
http://1337x.to/
http://thepiratebay.org/
http://rarbg.to/
https://torrentz2.eu/
https://nyaa.si/
@esmerino
esmerino / docker-pry-rails.md
Created April 30, 2020 21:12 — forked from natevick/docker-pry-rails.md
Using pry-rails with Docker

First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails

gem 'pry-rails', group: :development

Then you'll want to rebuild your Docker container to install the gems

@esmerino
esmerino / gist:14fbb88ce984adffdb5763d4ae347f24
Created April 3, 2020 21:52 — forked from hpjaj/gist:ef5ba70a938a963332d0
RSpec - List of available Expectation Matchers - from Lynda.com course 'RSpec Testing Framework with Ruby'
## From Lynda.com course 'RSpec Testing Framework with Ruby'
describe 'Expectation Matchers' do
describe 'equivalence matchers' do
it 'will match loose equality with #eq' do
a = "2 cats"
b = "2 cats"
expect(a).to eq(b)
docker-compose exec -T postgres pg_restore --verbose --clean --no-acl --no-owner -h localhost -U postgres -d enlistment_development < ../../latest.dump
docker-compose exec -T postgres psql -h localhost -U postgres -d app_vipbeneficios_development < ../databases/database1901201229.sql