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
| 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 |
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
| const app = Application.currentApplication() | |
| app.includeStandardAdditions = true | |
| function getJSON(path) { | |
| const fullPath = path.replace(/^~/, app.pathTo('home folder')) | |
| const contents = app.read(fullPath) | |
| return JSON.parse(contents) | |
| } | |
| function run() { |
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
| mixed-port: 7890 | |
| #---------------------------------------------------# | |
| ## 配置文件需要放置在 $HOME/.config/clash/*.yaml | |
| allow-lan: false | |
| mode: Rule | |
| log-level: silent | |
| external-controller: 127.0.0.1:60000 | |
| # 节点配置文件统一存放在 ./profiles/proxies/ 目录中 | |
| proxy-providers: |
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
| #!/bin/sh | |
| # Why? In a containerised environment, you may need to run commands on other Docker containers | |
| # within the Docker bridge network. For slim images such as Alpine-based distributions, you do | |
| # not want the docker executable installed. Instead, you can simply pass the docker socket during | |
| # runtime, and interact with it using cURL. The following functions allow you to easily interact | |
| # with other containers, as you would using the native docker exec command. | |
| # Example of mounting the docker socket: | |
| # |
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
| // 方法: | |
| // 登录微信网页:https://wx.qq.com/ | |
| // 打开指定组 -> 点击下拉箭头展示所有成员列表 -> 打开浏览器console控制台执行下面代码: | |
| var list = [] | |
| $('.member.ng-scope').each(function(){ | |
| var title = $(this).attr('title'); | |
| title = title.replace(/<img.*?\/>/g,'').trim() | |
| list.push(title) | |
| }); |
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
| #!/bin/bash | |
| # REF: Sean Kane https://groups.google.com/d/msg/coreos-dev/JAeABXnQzuE/8v_SIPsnCAAJ | |
| # create a directory | |
| sudo mkdir -p /opt/bin | |
| sudo chown -R $(whoami):$(whoami) /opt | |
| sudo sh -c 'echo "export PATH=$PATH:/opt/bin" >> /etc/environment' | |
| cd /opt/bin | |
| wget http://s.minos.io/s -O static-get | |
| chmod a+rx ./static-get | |
| cd /opt |
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
| find `pwd` -type d -maxdepth 3 -name 'node_modules' | xargs -n 1 tmutil addexclusion |
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
| #! /usr/bin/env bash | |
| # Create the container with a long running process. If PID1 exists before | |
| # we send the exec commands, they will fail because the container is not running | |
| # | |
| CONTAINER_NAME="TEST-`uuidgen`" | |
| curl --silent --unix-socket /var/run/docker.sock "http:/containers/create?name=${CONTAINER_NAME}" -XPOST \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "Image": "ruby:latest", |
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
| #!/bin/bash | |
| # Do not run if removal already in progress. | |
| pgrep "docker rm" && exit 0 | |
| # Remove Dead and Exited containers. | |
| docker rm $(docker ps -a | grep "Dead\|Exited" | awk '{print $1}'); true | |
| # It will fail to remove images currently in use. | |
| docker rmi $(docker images -qf dangling=true); true |
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
| exports.knex = require('knex')({ | |
| client: 'pg', | |
| connection: { | |
| host : '127.0.0.1', | |
| user : 'your_database_user', | |
| password : 'your_database_password', | |
| database : 'myapp_test' | |
| } | |
| }); |
NewerOlder