Skip to content

Instantly share code, notes, and snippets.

//Klasa z konfiguracjami Test-Kontenerów
@TestConfiguration(proxyBeanMethods = false)
class TestContainerConfiguration {
@Bean
@ServiceConnection
PostgreSQLContainer<?> postgresContainer() {
return new PostgreSQLContainer<>(DockerImageName.parse("postgres:17"));
}
}
@pikolinianita
pikolinianita / Version.java
Last active March 27, 2025 20:44
Including github Commit in Spring Boot App
@Component
@PropertySource("classpath:version.properties")
public class VersionConfig {
@Getter
@Value("${tiger.hash:unknown}")
private String hash;
@Value("${tiger.time:unknownTime}")
private String buildTime;
@pikolinianita
pikolinianita / sql_resources.md
Last active August 24, 2022 00:19 — forked from momer/sql_resources.md
SQL learning Resources for Beginners

There are a number of good introductory SQL resources available for free and online. There are also some paid resources which I recommend for beginners, that are very effective, and well worth expensing in my opinion.

A couple of notes:

  • I haven’t used all of these resources, but they come with strong recommendations around the web or myself/my peers.
  • You absolutely don’t need to use every single resource. Find a couple that work for you, and go to town.
  • You can always reach out to me if you have questions. I always paste this online when people are new to asking very technical questions – it’s not meant to be snarky – it's a gentle guide on how to compose your questions and gather necessary resources in order to best give technical people the information needed to get a quick/effective response: http://www.mikeash.com/getting_answers.html

Video/Class/Mini-course based:

  1. Stanford Self-paced ‘Database’ course
  • The original Coursera
@pikolinianita
pikolinianita / logging.cli
Last active April 10, 2021 22:55
Clojure Logging
(ns log-first.core
(:require [clojure.java.io :as io]
[taoensso.timbre :as timbre]
[taoensso.timbre.appenders.core :as appenders])
(:gen-class))
;And into project.cli
; :dependencies [[org.clojure/clojure "1.10.1"]
; [com.taoensso/timbre "5.1.2"]]