This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.estepnv.hotel_advisor.iam; | |
import com.nimbusds.jose.EncryptionMethod; | |
import com.nimbusds.jose.JWSAlgorithm; | |
import com.nimbusds.jose.jwk.*; | |
import com.nimbusds.jose.jwk.source.ImmutableJWKSet; | |
import com.nimbusds.jose.jwk.source.JWKSource; | |
import com.nimbusds.jose.proc.SecurityContext; | |
import org.springframework.beans.factory.annotation.Value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Insertable, Kysely, SelectQueryBuilder, Selectable, Updateable } from "kysely" | |
import { db } from "./db.js" | |
import { DB } from "./schema.js" | |
function must<T extends any>(value: T | null | undefined, msg: string = "value must be present"): T { | |
if (typeof value === "undefined") { | |
throw new Error(msg) | |
} else if (value == null) { | |
throw new Error(msg) | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'open3' | |
merge_process_status = nil | |
Open3.popen3("git merge HEAD &> /dev/null") do |stdin, stdout, stderr, wait_thr| | |
merge_process_status = wait_thr.value | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Datadog.configure do |c| | |
c.use :elasticsearch, service_name: "opensearch" | |
end | |
module OpenSearch | |
module InstrumentationPatch | |
DEFAULT_PEER_SERVICE_NAME = 'opensearch' | |
SPAN_QUERY = 'opensearch.query' | |
SPAN_TYPE_QUERY = 'opensearch' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install git | |
# Setting up rbenv | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
cd ~/.rbenv && src/configure && make -C src | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |