Skip to content

Instantly share code, notes, and snippets.

@kennethtu999
kennethtu999 / generate-cds.sh
Created October 5, 2025 04:36
Generate JAVA AppCDS (20251005 - help by Claude 4.5)
#!/bin/bash
# ==============================================================================
# AppCDS 歸檔生成腳本 V6 (零目錄版)
# 終極方案: 將所有 JAR 直接放在項目根目錄的臨時前綴下,完全避免子目錄
# ==============================================================================
# --- 配置區 ---
FAT_JAR_PATH="build/libs/fco-channel-0.0.1-SB34-SNAPSHOT.jar"
TEMP_DIR="exploded-app"
@kennethtu999
kennethtu999 / gist:219d84ba45552ee840672cbcbbeeaf0b
Last active March 9, 2024 15:41
透過Feign Client取得服務位置
  1. Maven Config (使用與SpringCloud的Feign Client相同的Library
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>org.example</groupId>
    <artifactId>imp-feign-client</artifactId>
@kennethtu999
kennethtu999 / ParseFile
Last active May 31, 2021 06:06
Accelerate daily file processing
var fs = require('fs'),
readline = require('readline'),
stream = require('stream');
/**
* File Utils
*/
class FileUtil {
createFolder(destFile) {
if (destFile.lastIndexOf('/') != -1) {
@kennethtu999
kennethtu999 / packstaticweb.md
Created January 13, 2020 09:24
Pack static web site as a windows executable file using golang

Package static web site as a windows executable file using golang

  1. Install library
go get github.com/go-bindata/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
  1. Creating embedded data all files and folders will be convert into data.go file
@kennethtu999
kennethtu999 / 2020LibertyPDLab.md
Last active April 16, 2021 02:38
Liberty Problem Determination Lab

Problem Determination Training using liberty and IBM tools

完整資訊請參閱教材內容

目錄