逆向工程说明: 本文档基于 nof1.ai Alpha Arena 的公开文档、交易行为模式、API 响应格式和社区讨论,系统性地逆向推导出其 System Prompt 和 User Prompt 的完整结构,欢迎各路大佬戳戳评论,一起来进行这个有趣的实验。
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
| Sui Move instructions (.move files): | |
| - Sui is an object-oriented blockchain. Sui smart contracts are written in the Move language. | |
| - Sui's object ownership model guarantees that the sender of a transaction has permission to use the objects it passes to functions as arguments. | |
| - Sui object ownership model in a nutshell: | |
| - Single owner objects: owned by a single address - granting it exclusive control over the object. | |
| - Shared objects: any address can use them in transactions and pass them to functions. | |
| - Immutable objects: like Shared objects, any address can use them, but they are read-only. |
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
| (* Arithmetic with Binary numbers (unsigned, arbitrary precision!) *) | |
| type digit = Zero | One | |
| type t = digit list | |
| let rec eq a b = | |
| match a, b with | |
| | [], [] -> true | |
| | da :: a, db :: b when da = db -> eq a b | |
| | _ -> false |
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
| module Reader = struct | |
| type ('e, 'a) t = Reader of ('e -> 'a) | |
| let run = function | |
| | Reader r -> r | |
| let map f m = Reader (fun env -> f (run m env)) | |
| let bind f m = Reader (fun env -> run (f (run m env)) env) |
An indentation sensitive parser combinator language is one that helps you express
ideas like "this parse only succeeds if it's within the current indentation block".
The concept is somewhat small and elegant and is implemented in a few libraries. In
this writeup, I will use examples from indents.
The direct goal will be to write the sameOrIndented parser combinator with a type
This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
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
| open Lwt | |
| let block_size = 256 * 4096 | |
| let ifd = Lwt_unix.stdin | |
| let ofd = Lwt_unix.stdout | |
| let print spd = | |
| try_lwt | |
| Lwt_io.eprintf "%s\r" (Speed.to_string spd) | |
| with Speed.Undefined -> return_unit |
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 | |
| //Thanks to http://ecs.victoria.ac.nz/foswiki/pub/Main/TechnicalReportSeries/ECSTR11-01.pdf | |
| import ( | |
| "fmt" | |
| ) | |
| //We will have multiple car parts | |
| type CarPart interface { | |
| Accept(CarPartVisitor) |
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
| GitHub RCE by Environment variable injection Bug Bounty writeup | |
| Disclaimer: I'll keep this really short but I hope you'll get the key points. | |
| GitHub blogged a while ago about some internal tool called gerve: | |
| https://github.com/blog/530-how-we-made-github-fast | |
| Upon git+sshing to github.com gerve basically looks up your permission | |
| on the repo you want to interact with. Then it bounces you further in | |
| another forced SSH session to the back end where the repo actually is. |
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
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #define XLIM 17 | |
| #define YLIM 9 | |
| #define ARSZ (XLIM * YLIM) | |
| #define DEBUG 0 |
NewerOlder