original idea: https://efcl.info/2023/01/31/remove-secret-from-local/
This file contains hidden or 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
const http = require('http') | |
const express = require('express') | |
const app = express() | |
app.get('/', (req, res) => { | |
res.setHeader('Content-Type', 'text/html') | |
res.setHeader('Transfer-Encoding', 'chunked'); | |
res.send(`<html><body><h1>Hello World</h1> | |
<ul id="list"></ul> | |
<script> |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
) | |
func main() { |
This file contains hidden or 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/env bash | |
exec -a "magic" magick convert "$@" |
This file contains hidden or 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
import {pagesPath} from './lib/$path.ts' | |
type Rule = { | |
pattern: string | |
fix: string | |
id: string | |
} | |
const rulesForLevel = (paths: any, parent: string[] = []) => { | |
let rules: Rule[] = [] |
This file contains hidden or 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
# Create port mapping files for each service/port combination | |
docker compose ps --format=json | jq -r ' | |
.Service as $service | | |
.Publishers[]? | | |
select(.PublishedPort > 0) | | |
"/tmp/compose_\($service)_\(.TargetPort)_\(.Protocol) \(.PublishedPort)" | |
' | while read -r filepath port; do | |
echo "$port" | docker compose exec -T <target> tee "$filepath" >/dev/null | |
done |
- ./buildlog.txt:
paru -S fcitx5-git fcitx5-cskk-git cskk-git
- ./envrionments.txt : About then environment information of the system.
- ./fcitx5-log1.txt : The log of fcitx5 when it is running. Adding Cskk as active input method, then switching to Cskk input method. Then, shutdown the fcitx5 daemon.
- ./fcitx5-log2.txt : The log of fcitx5 when it is running. Open fcitx5-config-qt, go to Addons tab, then Click 'Configure' button of
Cskk iput method for Fcitx5
, then click 'OK' button to close the dialog. Then, shutdown the fcitx5 daemon.
OlderNewer