Skip to content

Instantly share code, notes, and snippets.

View juarezjuniorgithub's full-sized avatar

Juarez Barbosa Junior juarezjuniorgithub

View GitHub Profile
@juarezjuniorgithub
juarezjuniorgithub / App.java
Created May 2, 2023 11:48
Connecting to your Oracle Database 23c Free — Developer Release instance from a Java application with JDBC
/*
Copyright (c) 2021, 2023, Oracle and/or its affiliates.
This software is dual-licensed to you under the Universal Permissive License
(UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
either license.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@juarezjuniorgithub
juarezjuniorgithub / odsa-spring.yaml
Created January 11, 2023 20:21
odsa-spring.yaml
apiVersion: v1
kind: Pod
metadata:
name: odsa-spring
spec:
containers:
- name: odsa-spring
image: orclacregistry.azurecr.io/odsa-spring:v1
imagePullSecrets:
- name: acr-secret
package com.oracle.dev.jdbc;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Properties;
@juarezjuniorgithub
juarezjuniorgithub / JdbcFunction.java
Created December 23, 2022 18:31
JDBC Function (Azure Function)
package com.oracle.dev.jdbc;
import java.sql.SQLException;
import java.util.Map;
import java.util.Optional;
import com.microsoft.azure.functions.ExecutionContext;
import com.microsoft.azure.functions.HttpMethod;
import com.microsoft.azure.functions.HttpRequestMessage;
import com.microsoft.azure.functions.HttpResponseMessage;
@juarezjuniorgithub
juarezjuniorgithub / Dockerfile
Created December 14, 2022 16:41
odsa-spring - Dockerfile
FROM openjdk:17
COPY target/odsa-spring-0.0.1-SNAPSHOT.jar /app.jar
EXPOSE 8080
CMD ["java", "-jar", "app.jar"]

Source

Vim Commands Cheat Sheet


How to Exit

:q[uit]

{
"@context": "dtmi:dtdl:context;2",
"@id": "dtmi:com:example:Thermostat;1",
"@type": "Interface",
"displayName": "Thermostat",
"description": "Reports current temperature and provides desired temperature control.",
"contents": [
{
"@type": [
"Telemetry",
@juarezjuniorgithub
juarezjuniorgithub / README.md
Created March 19, 2021 00:24 — forked from nenodias/README.md
Python Cursos
@juarezjuniorgithub
juarezjuniorgithub / BCGreenTrackerMSFTDevicesChaincode.go
Last active July 30, 2020 13:46
BCGreenTrackerMSFTDevicesChaincode - Hyperledger Smart Contract (chaincode) - Blockchain to Transform the Supply Chain Management for Microsoft Devices
// Hyperledger Blockchain Smart Contract (chaincode) - PoC
// Hackathon 2020 - Team Green Ireland - July 2020
// Project: for Blockchain to Transform the Supply Chain Management for Microsoft Devices
// Team members: Farouk Mezghich, Farouk Mezghich, Juarez Barbosa Junior
package main
import (
"bytes"
"encoding/json"
pragma solidity ^0.5.16;
contract HelloBlockchain
{
//Set of States
enum StateType { Request, Respond }
//List of properties
StateType public State;
address public Requestor;