View HelloWorld.java
This file contains 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
public class HelloWorld{ | |
public static void main(String[] args) { | |
System.out.println("Hello from my first gist"); | |
} | |
} |
View kafka.sh
This file contains 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
./kafka-console-producer.sh --topic topicName --broker-list localhost:9092 | |
./kafka-topics.sh --create --replication-factor 1 --partitions 1 --zookeeper localhost:2181 --topic topicName | |
./kafka-topics.sh --describe --zookeeper localhost:2181 | |
./zookeeper-server-start.sh ../conf/zookeeper.properties |
View di.sh
This file contains 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
#/bin/bash | |
echo " | |
When you go and get things out of the refrigerator for yourself, you can cause problems. You might leave the door open, | |
you might get something Mommy or Daddy doesn't want you to have. You might even be looking for something we don't even have | |
or which has expired. | |
What you should be doing is stating a need, "I need something to drink with lunch", and then we will make sure you have | |
something when you sit down to eat. | |
View ToXHTML.java
This file contains 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
public class ToXHTML { | |
/** | |
* <dependency> | |
* <groupId>net.sf.jtidy</groupId> | |
* <artifactId>jtidy</artifactId> | |
* <version>r938</version> | |
* </dependency> | |
*/ | |
View commands.sh
This file contains 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
# Postgres database as docker container | |
docker run -p 5432:5432 --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres | |
# creating a table with auto increment primary key prior to PostgreSQL 10 | |
CREATE TABLE category ( | |
ID SERIAL PRIMARY KEY, | |
DESCRIPTION VARCHAR(255) | |
); | |
# creating auto increment primary key since PostgresSQL 10 |
View WpClient.java
This file contains 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
@ApplicationScoped | |
public class WpClient { | |
public void getListOfBlogPosts(@Observes @Initialized(ApplicationScoped.class) Object object) { | |
Client client = ClientBuilder.newBuilder().build(); | |
WebTarget webTarget = client.target("https://rieckpil.de/wp-json/wp/v2/posts"); | |
JsonArray result = webTarget | |
.queryParam("per_page", 100) |
View application.yml
This file contains 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
spring: | |
jpa: | |
show-sql: false | |
hibernate: | |
ddl-auto: none | |
properties: | |
hibernate.generate_statistics: true | |
logging: | |
level: |
View sendowl.js
This file contains 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
<script> | |
Page.checkoutCallback = function () { | |
var email = document.getElementById("order_buyer_email").value; | |
if (email) { | |
$("#order_buyer_email").blur(); | |
} | |
} | |
</script> |
View rieckpil.css
This file contains 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
.crayon-theme-rieckpil { | |
border-width: 0px !important; | |
border-color: #999 !important; | |
border-style: solid !important; | |
text-shadow: none !important; | |
background: #fdfdfd !important; | |
} | |
.crayon-theme-rieckpil-inline { | |
border-width: 1px !important; | |
border-color: #ddd !important; |
View pom.xml
This file contains 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
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-test</artifactId> | |
<scope>test</scope> | |
</dependency> |
OlderNewer