Skip to content

Instantly share code, notes, and snippets.

@jaceju
jaceju / github-actions-version.md
Created August 14, 2026 03:34
GitHub Actions version
原本常見版本 支援 Node.js 24 的版本 建議替換 備註
actions/checkout@v4 v5 起;目前也有 v6 actions/checkout@v5@v6 v5 明確改為 Node 24;v6 另有 credentials 儲存位置調整,若 workflow 有 git push/自訂 credential 行為,升級前要測。([GitHub][1])
actions/setup-node@v4 v5 actions/setup-node@v5 v5 改為 Node 24,且有 caching 預設行為變更;敏感 workflow 可加 package-manager-cache: false。([GitHub][2])
actions/cache@v4 v5 **`ac
@jaceju
jaceju / pony_with_face_detailer.json
Last active April 6, 2025 02:55
ComfyUI: Pony Workflow with FaceDetailer
{
"id": "93b6262d-d0ae-4f3e-8675-ff13209f9681",
"revision": 0,
"last_node_id": 92,
"last_link_id": 122,
"nodes": [
{
"id": 66,
"type": "ImageUpscaleWithModel",
"pos": [3070, 1400],
@jaceju
jaceju / AceEditor.vue
Created November 5, 2019 04:15
在 Vue 裡用 AceEditor
<template>
<div
:style="{ height: myOptions.height + 'px', width: myOptions.width + 'px' }"
></div>
</template>
<script>
import { edit } from "ace-builds";
const defaultOptions = {
@jaceju
jaceju / static.php
Created June 14, 2019 02:41
Static variable in PHP function
<?php
function f($n) {
static $result = [];
if (isset($result[$n])) {
return $result[$n];
}
if ($n <= 2) {
@jaceju
jaceju / vue.config.js
Last active September 5, 2022 05:19
Webpack resolve alias in PhpStorm/WebStorm
// @see https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000556284-vue-import-component-Module-is-not-installed-?page=2#community_comment_360000146344
// If you use vue-cli 3:
// Put this file to root folder fo the project
// Open PhpStorm or WebStorm, and goto
// Perferences / Languages & Frameworks / JavaScript / Webpack
// webpack configuration file: </path/to/project/node_modules/@vue/cli-service/webpack.config.js>
const path = require("path");
function resolve(dir) {
install-deps:
image: our-registry:5000/php:7.2
stage: prepare
script:
- composer --no-dev install --no-scripts
artifacts:
expire_in: 1 week
paths:
- vendor/
@jaceju
jaceju / Dockerfile
Created January 9, 2019 10:00
Ubuntu Install Java 8
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863199#23
RUN mkdir -p /usr/share/man/man1 && \
apt-get update && \
apt-get install -y --no-install-recommends \
openjdk-8-jdk && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/.cache
@jaceju
jaceju / index.js
Last active December 19, 2018 02:55
Export modules under a directory (Node.js)
const camelCase = require('camelcase');
require('fs').readdirSync(__dirname + '/').forEach(file => {
if (file.endsWith('js') && file !== 'index.js') {
var name = file.replace('.js', '');
exports[camelCase(name)] = require('./' + file);
}
});
@jaceju
jaceju / laravel-valet-curl-issue.md
Created November 20, 2018 07:50
Laravel Valet 的 curl 問題

問題

用 Valet secure 過的網站,用 curl 打的時候會遇到:

cURL error 60: SSL certificate problem: unable to get local issuer certificate

解決方法