fucksophie / cla66ic Goto Github PK
View Code? Open in Web Editor NEWwoo hoo baby
License: GNU General Public License v3.0
woo hoo baby
License: GNU General Public License v3.0
attempted in https://github.com/yourfriendoss/cla66ic/tree/TCP
horribly failed (and i don't know why)
requesting halp from @rdebath , since i'm not too proficient with handling this type of thing
Start an S3 emulator; connect to it's web interface and create values for S3 Access and secret. Also note the API url that is NOT the localhost address.
docker run --rm -it \
-u $UID \
-p 9000:9000 -p 9001:9001 \
-v "$(pwd)"/minio:/data minio/minio \
server /data --console-address ":9001"
Example contents of the pass.txt
file.
HASH=WUQrI3pMZ1ZkRz1Iclk
S3_ACCESS_KEY_ID=MCp5Q146Iyl6TUVX
S3_SECRET_KEY=IkMkZj4pamFCWWMkbFAuSEh6WHViQnBg
S3_ENDPOINT_URL=http://192.168.115.2:9000
Required patch to configure endpoint.
diff --git a/deps.ts b/deps.ts
index 98647eb..605757f 100644
--- a/deps.ts
+++ b/deps.ts
@@ -15,7 +15,7 @@ export const s3 = new ApiFactory({
awsAccessKeyId: Deno.env.get("S3_ACCESS_KEY_ID")!,
awsSecretKey: Deno.env.get("S3_SECRET_KEY")!,
},
- fixedEndpoint: "https://s3.us-west-004.backblazeb2.com",
+ fixedEndpoint: Deno.env.get("S3_ENDPOINT_URL"),
region: "us-west-004",
}).makeNew(S3);
Start the service ...
docker run --rm -it -p 6969:6969 \
-v "$(pwd)":/app \
--env PORT=6969 \
--env 'OPS=["superop"]' \
--env ONLINEMODE=true \
--env $(grep ^HASH pass.txt) \
--env $(grep ^S3_ACCESS_KEY_ID pass.txt) \
--env $(grep ^S3_SECRET_KEY pass.txt) \
--env $(grep ^S3_ENDPOINT_URL pass.txt) \
--workdir /app \
denoland/deno deno run --allow-env --allow-net --allow-read index.ts
If you telnet to the port. Hit return then more than 64 X characters the service tries to decode the message packet but fails when there isn't a logged in user.
...
INFO Listening on port 6969!
error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'username')
if (config.ops.includes(player.username)) {
^
at Server.handlePacket (file:///app/classes/Server.ts:255:38)
at Server.startSocket (file:///app/classes/Server.ts:356:14)
localhost-cla66ic$
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.