aboutsummaryrefslogtreecommitdiff
path: root/store/misc
diff options
context:
space:
mode:
Diffstat (limited to 'store/misc')
-rw-r--r--store/misc/bruno/ComfyUI/Get Object Info.bru11
-rw-r--r--store/misc/bruno/ComfyUI/Get Prompt History.bru15
-rw-r--r--store/misc/bruno/ComfyUI/Post Prompt.bru124
-rw-r--r--store/misc/bruno/ComfyUI/Upload Image.bru18
-rw-r--r--store/misc/bruno/ComfyUI/View Image.bru19
-rw-r--r--store/misc/bruno/ComfyUI/bruno.json9
-rw-r--r--store/misc/bruno/ComfyUI/environments/ChimerAI ComfyUI Server.bru3
-rw-r--r--store/misc/magic/extend-script.js21
-rw-r--r--store/misc/magic/extend.yaml65
9 files changed, 285 insertions, 0 deletions
diff --git a/store/misc/bruno/ComfyUI/Get Object Info.bru b/store/misc/bruno/ComfyUI/Get Object Info.bru
new file mode 100644
index 0000000..d1a833c
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/Get Object Info.bru
@@ -0,0 +1,11 @@
+meta {
+ name: Get Object Info
+ type: http
+ seq: 4
+}
+
+get {
+ url: {{BASE_URL}}/object_info
+ body: none
+ auth: none
+}
diff --git a/store/misc/bruno/ComfyUI/Get Prompt History.bru b/store/misc/bruno/ComfyUI/Get Prompt History.bru
new file mode 100644
index 0000000..2e26888
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/Get Prompt History.bru
@@ -0,0 +1,15 @@
+meta {
+ name: Get Prompt History
+ type: http
+ seq: 6
+}
+
+get {
+ url: {{BASE_URL}}/history/{{prompt_id}}
+ body: none
+ auth: none
+}
+
+vars:pre-request {
+ prompt_id: 7e345a55-21c4-4bdc-9b34-add561775144
+}
diff --git a/store/misc/bruno/ComfyUI/Post Prompt.bru b/store/misc/bruno/ComfyUI/Post Prompt.bru
new file mode 100644
index 0000000..09bf89a
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/Post Prompt.bru
@@ -0,0 +1,124 @@
+meta {
+ name: Post Prompt
+ type: http
+ seq: 5
+}
+
+post {
+ url: {{BASE_URL}}/prompt
+ body: json
+ auth: none
+}
+
+body:json {
+ {
+ "client_id": "crupest",
+ "prompt": {
+ "3": {
+ "inputs": {
+ "seed": 156680208700286,
+ "steps": 20,
+ "cfg": 8,
+ "sampler_name": "euler",
+ "scheduler": "normal",
+ "denoise": 1,
+ "model": [
+ "4",
+ 0
+ ],
+ "positive": [
+ "6",
+ 0
+ ],
+ "negative": [
+ "7",
+ 0
+ ],
+ "latent_image": [
+ "5",
+ 0
+ ]
+ },
+ "class_type": "KSampler",
+ "_meta": {
+ "title": "KSampler"
+ }
+ },
+ "4": {
+ "inputs": {
+ "ckpt_name": "SUPIR/SUPIR-v0Q.ckpt"
+ },
+ "class_type": "CheckpointLoaderSimple",
+ "_meta": {
+ "title": "Load Checkpoint"
+ }
+ },
+ "5": {
+ "inputs": {
+ "width": 512,
+ "height": 512,
+ "batch_size": 1
+ },
+ "class_type": "EmptyLatentImage",
+ "_meta": {
+ "title": "Empty Latent Image"
+ }
+ },
+ "6": {
+ "inputs": {
+ "text": "beautiful scenery nature glass bottle landscape, , purple galaxy bottle,",
+ "clip": [
+ "4",
+ 1
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "7": {
+ "inputs": {
+ "text": "text, watermark",
+ "clip": [
+ "4",
+ 1
+ ]
+ },
+ "class_type": "CLIPTextEncode",
+ "_meta": {
+ "title": "CLIP Text Encode (Prompt)"
+ }
+ },
+ "8": {
+ "inputs": {
+ "samples": [
+ "3",
+ 0
+ ],
+ "vae": [
+ "4",
+ 2
+ ]
+ },
+ "class_type": "VAEDecode",
+ "_meta": {
+ "title": "VAE Decode"
+ }
+ },
+ "9": {
+ "inputs": {
+ "filename_prefix": "ComfyUI",
+ "images": [
+ "8",
+ 0
+ ]
+ },
+ "class_type": "SaveImage",
+ "_meta": {
+ "title": "Save Image"
+ }
+ }
+ }
+ }
+}
diff --git a/store/misc/bruno/ComfyUI/Upload Image.bru b/store/misc/bruno/ComfyUI/Upload Image.bru
new file mode 100644
index 0000000..92b4aeb
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/Upload Image.bru
@@ -0,0 +1,18 @@
+meta {
+ name: Upload Image
+ type: http
+ seq: 2
+}
+
+post {
+ url: {{BASE_URL}}/upload/image
+ body: multipartForm
+ auth: none
+}
+
+body:multipart-form {
+ overwrite: true
+ type: input
+ subfolder: crupest-test
+ image: @file(/Users/crupest/codes/crupest/assets/crupest-transparent.png)
+}
diff --git a/store/misc/bruno/ComfyUI/View Image.bru b/store/misc/bruno/ComfyUI/View Image.bru
new file mode 100644
index 0000000..395eccd
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/View Image.bru
@@ -0,0 +1,19 @@
+meta {
+ name: View Image
+ type: http
+ seq: 1
+}
+
+get {
+ url: {{BASE_URL}}/view?filename=crupest-transparent.png&type=input&subfolder=crupest-test&preview=jpeg;90&channel=rgb
+ body: none
+ auth: none
+}
+
+query {
+ filename: crupest-transparent.png
+ type: input
+ subfolder: crupest-test
+ preview: jpeg;90
+ channel: rgb
+}
diff --git a/store/misc/bruno/ComfyUI/bruno.json b/store/misc/bruno/ComfyUI/bruno.json
new file mode 100644
index 0000000..ee35540
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/bruno.json
@@ -0,0 +1,9 @@
+{
+ "version": "1",
+ "name": "ComfyUI",
+ "type": "collection",
+ "ignore": [
+ "node_modules",
+ ".git"
+ ]
+} \ No newline at end of file
diff --git a/store/misc/bruno/ComfyUI/environments/ChimerAI ComfyUI Server.bru b/store/misc/bruno/ComfyUI/environments/ChimerAI ComfyUI Server.bru
new file mode 100644
index 0000000..480c8da
--- /dev/null
+++ b/store/misc/bruno/ComfyUI/environments/ChimerAI ComfyUI Server.bru
@@ -0,0 +1,3 @@
+vars:secret [
+ BASE_URL
+]
diff --git a/store/misc/magic/extend-script.js b/store/misc/magic/extend-script.js
new file mode 100644
index 0000000..519cee9
--- /dev/null
+++ b/store/misc/magic/extend-script.js
@@ -0,0 +1,21 @@
+// Define main function (script entry)
+
+function main(config, profileName) {
+ delete config.dns;
+ delete config.tun;
+ delete config.hosts;
+
+ delete config["cfw-latency-timeout"]
+ delete config["cfw-latency-url"]
+ delete config["cfw-conn-break-strategy"]
+
+ config["proxies"] = [config["crupest-proxy"], ...config["proxies"]]
+ delete config["crupest-proxy"]
+
+ select_proxy = { name: "node-select", type: "select", proxies: ["auto-select", ...config.proxies.map(p => p.name)] }
+ auto_select_proxy = config["crupest-auto-select"]
+ config["proxy-groups"] = [ select_proxy, auto_select_proxy ]
+ delete config["crupest-auto-select"]
+
+ return config;
+}
diff --git a/store/misc/magic/extend.yaml b/store/misc/magic/extend.yaml
new file mode 100644
index 0000000..3006f08
--- /dev/null
+++ b/store/misc/magic/extend.yaml
@@ -0,0 +1,65 @@
+# Profile Enhancement Merge Template for Clash Verge
+
+profile:
+ store-selected: true
+
+rules:
+ - "GEOSITE,github,node-select"
+ - "GEOSITE,google,node-select"
+ - "GEOSITE,youtube,node-select"
+ - "GEOSITE,twitter,node-select"
+ - "GEOSITE,facebook,node-select"
+ - "GEOSITE,discord,node-select"
+ - "GEOSITE,reddit,node-select"
+ - "GEOSITE,twitch,node-select"
+ - "GEOSITE,quora,node-select"
+ - "GEOSITE,telegram,node-select"
+ - "GEOSITE,imgur,node-select"
+ - "GEOSITE,stackexchange,node-select"
+ - "GEOSITE,onedrive,node-select"
+
+ - "GEOSITE,duckduckgo,node-select"
+ - "GEOSITE,wikimedia,node-select"
+ - "GEOSITE,gitbook,node-select"
+ - "GEOSITE,gitlab,node-select"
+ - "GEOSITE,creativecommons,node-select"
+ - "GEOSITE,archive,node-select"
+ - "GEOSITE,matrix,node-select"
+ - "GEOSITE,tor,node-select"
+
+ - "GEOSITE,python,node-select"
+ - "GEOSITE,ruby,node-select"
+ - "GEOSITE,rust,node-select"
+ - "GEOSITE,nodejs,node-select"
+ - "GEOSITE,npmjs,node-select"
+ - "GEOSITE,qt,node-select"
+ - "GEOSITE,docker,node-select"
+ - "GEOSITE,v2ray,node-select"
+ - "GEOSITE,homebrew,node-select"
+ - "GEOSITE,bootstrap,node-select"
+
+ - "GEOSITE,heroku,node-select"
+ - "GEOSITE,vercel,node-select"
+
+ - "GEOSITE,ieee,node-select"
+ - "GEOSITE,sci-hub,node-select"
+ - "GEOSITE,libgen,node-select"
+
+ - "DOMAIN-SUFFIX,gnu.org,node-select"
+ - "DOMAIN-SUFFIX,nongnu.org,node-select"
+ - "DOMAIN-SUFFIX,ietf.org,node-select"
+ - "DOMAIN-SUFFIX,packagist.org,node-select"
+ - "DOMAIN-SUFFIX,metacubex.one,node-select"
+ - "MATCH,DIRECT"
+
+crupest-proxy:
+ ...
+
+crupest-auto-select:
+ name: "auto-select"
+ type: url-test
+ interval: 1800
+ include-all-proxies: true
+ url: 'https://www.gstatic.com/generate_204'
+ filter: "日本|新加坡|香港|台湾|美国"
+ expected-status: 204