Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{
"info": {
"_postman_id": "c922075b-1573-4bf3-8108-3d758e2c3d3b",
"name": "WIB API for lockers",
"description": "API available for WIB Machinery\n\nContact Support:\n Email: [email protected]",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "95335",
"_collection_link": "https://bounce-lockers.postman.co/workspace/Bounce-Lockers~3c37237d-589d-44bd-89d7-da4e6ece9e97/collection/95335-c922075b-1573-4bf3-8108-3d758e2c3d3b?action=share&source=collection_link&creator=95335"
},
"item": [
@bacarini
bacarini / n8n-deployment.yml
Last active March 16, 2025 19:58
N8N - Kubernetes complete configuration
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n-deployment
namespace: standard
labels: &labels
app: n8n
component: deployment
spec:

Keybase proof

I hereby claim:

  • I am bacarini on github.
  • I am bacarini (https://keybase.io/bacarini) on keybase.
  • I have a public key ASC1xhENiRu9cJDI9REX52GPjPXm3cQND9EwUYyI86OIJgo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bacarini on github.
  • I am bacarini (https://keybase.io/bacarini) on keybase.
  • I have a public key ASAVjz3x_Du7b2LgSis67LA-ry9n2opBYDB6M2QgIvYjJwo

To claim this, I am signing this object:

@bacarini
bacarini / comment.rb
Last active June 21, 2016 20:51
app/models/comment.rb
class Comment < Sequel::Model
set_dataset MyApp::SequelDb.alt_db[:comments]
end
@bacarini
bacarini / database_cleaner.rb
Last active June 21, 2016 21:04
spec/support/database_cleaner.rb
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner[:sequel].strategy = :transaction
end
config.before(:each) do
DatabaseCleaner[:sequel, {:connection => MyApp::SequelDb.main_db}].start
DatabaseCleaner[:sequel, {:connection => MyApp::SequelDb.alt_db}].start
end
MyApp::SequelDb["SELECT * FROM posts WITH (NOLOCK);"].all
@bacarini
bacarini / database.rake
Last active June 21, 2016 17:27
lib/tasks/database
require 'sequel'
require_relative '../../config/initializers/sequel_init'
namespace :db do
desc 'Load the seed data from db/seeds.rb'
task seed: :environment do
require 'sequel/extensions/seed'
Sequel.extension :seed
Sequel::Seeder.apply(MyApp::SequelDb.main_db, "db/seeds")
@bacarini
bacarini / post.rb
Created June 19, 2016 13:54
app/models/post.rb
class Post < Sequel::Model(:posts)
end
@bacarini
bacarini / production.rb
Last active June 21, 2016 20:53
config/unicorn/production.rb
before_fork do |_, _|
MyApp::SequelDb.disconnect_all
end
after_fork do |_, _|
MyApp::SequelDb.start_connections
end