Skip to content

Instantly share code, notes, and snippets.

Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.
- Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
- Reasoning Before Conclusions: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
- Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
- Conclusion, classifications, or results should ALWAYS appear last.
- Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
- What kinds of examples may need to be included, how many, and whether they are complex enough to benefit from p
@qqshow
qqshow / s3-1mb.xml
Created August 10, 2021 05:59 — forked from dyusupov/s3-1mb.xml
cosbench s3 1MB read-write, single bucket 100,000 objects
<?xml version="1.0" encoding="UTF-8"?>
<workload name="S3-1MB-write-reread" description="Verification of S3 parallel I/O of 1MB objects into a single bucket">
<auth type="none" config="username=admin;password=edgefs;auth_url=http://172.10.10.75:8080/auth/v1.0"/>
<workflow config="">
<workstage name="prepare">
<work name="prepare-objects" type="prepare" workers="40" division="object"
interval="20" config="cprefix=shared;containers=r(1,1);objects=r(1,100000);sizes=r(1,1)MB;hashCheck=false">
<storage type="s3" config="accesskey=KEY;secretkey=SEC;endpoint=http://172.10.10.75:9982;timeout=600000"/>
</work>
</workstage>
@qqshow
qqshow / docker-compose.yml
Created August 10, 2021 05:49 — forked from dyusupov/docker-compose.yml
single-node docker-compose file
version: '2.4'
services:
target:
privileged: true
network_mode: "host"
ipc: "host"
restart: always
volumes:
- '/etc/localtime:/etc/localtime:ro'
- '/edgefs/var/run:/opt/nedge/var/run:z'
@qqshow
qqshow / google_black_list.js
Created June 15, 2012 01:02 — forked from wong2/google_black_list.js
Google Chinese blacklist
var a = [[1492], [6656], [8759], [63166], [9287], [4369], [8811], [7556], [6262], [14399], [64357], [64353], [10546], [6450], [63794], [61408], [60467, 60463, 30321, 30325, 5103, 9471, 8510, 30243, 5103, 9471, 8510, 30321, 30325, 60467, 60463], [63413, 878, 10006, 64901], [57367, 10006, 64901, 14548, 14505], [10006, 64901, 30321, 30325, 6877, 9480, 30243, 6877, 9480, 30321, 30325, 10006, 64901], [57367, 10006, 64901, 30321, 30325, 14624, 61401, 30243, 14624, 61401, 30321, 30325, 57367, 10006, 64901], [62995, 4015, 62638, 64946, 30321, 30325, 3339, 7703,
30243, 3339, 7703, 30321, 30325, 62995, 4015, 62638, 64946], [10035, 9470, 8711, 30321, 30325, 3339, 7703, 30243, 3339, 7703, 30321, 30325, 10035, 9470, 8711], [62427, 643, 643], [6952, 14674, 10728], [10851, 10827, 14674, 10728], [30263, 30266, 30246, 30248, 30256, 30256, 30267], [30257, 30266, 30262, 30259, 30321, 30325, 30248, 30256, 30256, 30267, 30243, 30248, 30256, 30256, 30267, 30321, 30325, 30257, 30266, 30262, 30259], [12150, 2272, 11
# encoding=utf-8
# Usage: python filename.py
# Background Run: nohup python filename.py 2079 &
# http://yaonie.org/
import socket, thread, select, sys
BUFLEN = 8192
HTTPVER = 'HTTP/1.1'
#!/usr/bin/python
# Filename s5.py
# Python Dynamic Socks5 Proxy
# Usage: python s5.py 1080
# Background Run: nohup python s5.py 1080 &
# Email: ringzero@557.im
import socket, sys, select, SocketServer, struct, time
class ThreadingTCPServer(SocketServer.ThreadingMixIn, SocketServer.TCPServer): pass
@qqshow
qqshow / Test.c
Created June 3, 2011 02:42
Windows Library
void main(int argc, void *argv[])
{
printf("hello world.\n"
}