Skip to content

Instantly share code, notes, and snippets.

@xuyungit
xuyungit / agent loop
Created March 10, 2025 10:18 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@xuyungit
xuyungit / Makefile
Created December 23, 2015 09:48
test_private
.PHONY: apf ext worker mode theme package test
default: apf worker
update: worker
# packages apf
apf:
cd node_modules/packager; n66 package.js projects/apf_cloud9.apr
cd node_modules/packager; cat build/apf_release.js | sed 's/\(\/\*FILEHEAD(\).*//g' > ../../plugins-client/lib.apf/www/apf-packaged/apf_release.js
@xuyungit
xuyungit / speed_test.js
Last active December 23, 2015 09:46
speed_test_disk
"use strict";
if (process.argv.length != 3) {
console.log('speed_test ssd_folder_to_be_tested');
process.exit(0)
}
var outputFolder = process.argv[2];
var fs = require('fs');
var buf = fs.readFileSync('../../s.gz');
exports.redisHset = function(hash, field, value) {
return new Promise(function(fullfill, reject) {
redis.hset(hash, field, value, function(err, reply) {
if (err) {
reject('Redis Fail');
} else {
fullfill();
}
});
});