Skip to content

Instantly share code, notes, and snippets.

@weeix
weeix / keycloak-21-0-0-ldap.log
Last active September 7, 2023 08:48
Keycloak 21.0.0 and later doesn't supports LDAPS connections to Active Directory on Windows Server 2012R2? (Connection reset)
Changes detected in configuration. Updating the server image.
Updating the configuration and installing your custom providers, if any. Please wait.
2023-08-31 03:55:55,568 INFO [io.quarkus.deployment.QuarkusAugmentor] (main) Quarkus augmentation completed in 8313ms
Server configuration updated and persisted. Run the following command to review the configuration:
kc.sh show-config
Next time you run the server, just run:
kc.sh start --optimized
[INFO ] 2019-11-23 06:46:28.552 [main] SpringBootApplication - No data directory provided, defaulting to /opt/cakeshop/data
[INFO ] 2019-11-23 06:46:28.582 [main] SpringBootApplication - cakeshop.config.dir=/opt/cakeshop/data
Defaulting to spring profile: local
Extracting binaries to /opt/cakeshop/data/bin
[INFO ] 2019-11-23 06:46:33.010 [main] SpringBootApplication - Starting SpringBootApplication v0.11.0 on cb4322026164 with PID 6 (/opt/cakeshop/cakeshop.war started by cakeshop in /opt/cakeshop)
[INFO ] 2019-11-23 06:46:33.012 [main] SpringBootApplication - The following profiles are active: container,spring-boot,local
[INFO ] 2019-11-23 06:46:42.278 [main] AppConfig - cakeshop.config.dir=/opt/cakeshop/data/local
[INFO ] 2019-11-23 06:46:42.287 [main] AppConfig - Loading config from /opt/cakeshop/data/local/application.properties
[INFO ] 2019-11-23 06:47:02.887 [main] WebConfig - async task pool thread core 250
@weeix
weeix / cakeshop-docker.log
Created November 10, 2019 13:43
Docker log when running "quorumengineering/cakeshop" image
Defaulting to spring profile: local
Extracting binaries to /opt/cakeshop/data/bin
,%%%%%%%%,
,%%/\%%%%/\%%
,%%%\c "" J/%%% ,,,,,,,
%. %%%%/ 6 6 \%%% |||||||
`%%. %%%% _ |%%% @@@@@@@@@@@
`%% `%%%%(__Y__)%%' {~*~*~*~*~}
// ;%%%%`\-/%%%' @@@@@@@@@@@@@@@@
(( / `%%%%%%%' {~* CAKESHOP *~}
@weeix
weeix / index.html
Created February 2, 2019 10:57
ตัวอย่างโค้ด dropdown + AJAX
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>AJAX Dropdown Example</title>
</head>
<body>
<h1>AJAX Dropdown Example</h1>
@weeix
weeix / docker-compose.yml
Created December 19, 2017 20:32
ไฟล์ docker-compose.yml ที่ใช้ติดตั้ง geoserver และ postgis
version: '3'
services:
geoserver:
image: kartoza/geoserver
ports:
- "8080:8080"
volumes:
- ./geoserver_data:/opt/geoserver/data_dir
postgis:
image: kartoza/postgis
@weeix
weeix / Num2ThaiNum.vb
Last active November 27, 2017 06:44
Macro ชุดนี้มีไว้แก้ไขเลขอารบิก (0-9) ในเอกสารทั้งหมดให้เป็นเลขไทย (๐-๙) เหมาะกับเอกสารที่จัดทำโดยใช้ฟอนต์ TH SarabanIT๙ หรือ TH NiramitIT๙ และต้องการเปลี่ยนกลับมาใช้ฟอนต์มาตรฐาน (ทดสอบกับ LibreOffice 5.4.3.2 แล้ว)
Sub Main
Dim arabicNumerals(10) As String
Dim thaiNumerals(10) As String
Dim n As Long
Dim oDocument As Object
Dim oReplace As Object
arabicNumerals() = Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9")
thaiNumerals() = Array("๐", "๑", "๒", "๓", "๔", "๕", "๖", "๗", "๘", "๙")
oDocument = ThisComponent