Rust 同样有 sanitize 1
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 { useCallback, useEffect, useRef, useState } from "react"; | |
interface UseUndoHook<T> { | |
value: T; | |
onChange: (newValue: T) => void; | |
undo: () => void; | |
redo: () => void; | |
clear: () => void; | |
canUndo: boolean; | |
canRedo: boolean; |
Comparison of Spring Cloud with Eureka
I feel Consul.io does better in the following area:
-
The focus on scriptable configuration allows for better container management.
Eureka requires either external Configuration Server or multiple configuration files. -
The options for securing communications is more advanced.
Eureka requires creating application with security settings desired. Default will allow HTTP only. Registration of end points assumes http but can be forced to https with code.
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
{$dify_host_name} { | |
header { | |
# Enable HTTP Strict Transport Security (HSTS) to force clients to always connect via HTTPS | |
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" | |
# Prevent some browsers from MIME-sniffing a response away from the declared Content-Type | |
X-Content-Type-Options "nosniff" | |
# X-Robots-Tag |
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 { createClient } from 'npm:@1password/sdk'; | |
const decoder = new TextDecoder(); | |
const runCli = async (args: string[] | string) => { | |
if (typeof args === 'string') { | |
args = [args] | |
} | |
const command = new Deno.Command("op", { | |
args: [...args], |
OlderNewer