Skip to content

Instantly share code, notes, and snippets.

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

Matías Hernán García matiasgarcia

🏠
Working from home
View GitHub Profile
@matiasgarcia
matiasgarcia / interceptors.ts
Created December 7, 2022 15:46
interceptor nestjs
//http-client.module.ts
import { Module } from '@nestjs/common';
import { HttpModule } from '@nestjs/axios';
import { HttpClientService } from './http-client.service';
@Module({
imports: [
HttpModule.register({
timeout: 20000,
@matiasgarcia
matiasgarcia / aws.rb
Created March 19, 2020 18:01
aws snippet
client = Aws::QuickSight::Client.new
datasource = client.create_data_source(
aws_account_id: account_id,
data_source_id: data_source_id,
type: 'S3',
name: data_source_id,
data_source_parameters: {
s3_parameters: {
manifest_file_location: {
bucket: manifest.bucket,
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
class Vehicle
def run
refill
load
end
end
class Car < Vehicle
def load
# load passengers