Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| { | |
| "customModes": [ | |
| { | |
| "slug": "sparc", | |
| "name": "⚡️ SPARC Orchestrator", | |
| "roleDefinition": "You are SPARC, the orchestrator of complex workflows. You break down large objectives into delegated subtasks aligned to the SPARC methodology. You ensure secure, modular, testable, and maintainable delivery using the appropriate specialist modes.", | |
| "customInstructions": "Follow SPARC:\n\n1. Specification: Clarify objectives and scope. Never allow hard-coded env vars.\n2. Pseudocode: Request high-level logic with TDD anchors.\n3. Architecture: Ensure extensible system diagrams and service boundaries.\n4. Refinement: Use TDD, debugging, security, and optimization flows.\n5. Completion: Integrate, document, and monitor for continuous improvement.\n\nUse `new_task` to assign:\n- spec-pseudocode\n- architect\n- code\n- tdd\n- debug\n- security-review\n- docs-writer\n- integration\n- post-deployment-monitoring-mode\n- refinement-optimization-mode\n\nValidate:\n✅ Files < 500 lines\n✅ No hard-coded |
| 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 |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| @script = <<SCRIPT | |
| # Install php and extensions | |
| # PHPと拡張をインストールする | |
| sudo amazon-linux-extras install php7.4 | |
| sudo ln -s /usr/bin/php /usr/local/bin/php | |
| import sys | |
| from time import sleep | |
| from selenium import webdriver | |
| from selenium.common.exceptions import TimeoutException | |
| from selenium.common.exceptions import WebDriverException | |
| from eliot import start_action, to_file, log_call | |
| # from selenium.webdriver.common.keys import Keys | |
| # from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
| # from selenium.webdriver.common.by import By | |
| # from selenium.webdriver.support import expected_conditions as EC |
| <h1> | |
| <a title="swiper.js" href="http://idangero.us/swiper/" target="_blank">Swiper.js (4.3.5)</a> | |
| & | |
| <a title="photoswipe" href="http://photoswipe.com/" target="_blank">Photoswipe.js (4.1.1)</a> | |
| - Mobile Native feel slider gallery | |
| </h1> | |
| <p>Combine two of the most powerfull JS plugins (Endless options / Great docs / Fast / Modern / Mobile freindly) - <a title="swiper.js" href="http://idangero.us/swiper/" target="_blank">SWIPER</a> IS PERFECT FOR THIS IDEA BEACUSE OF ITS unique <code>preventClicks</code> Parameter (Prevent accidental unwanted clicks on links during swiping) - <strong>Works like magic</strong>. Also its really <b>hard</b> to find - Code example of working photoswipe combination with any slider out there(slick, flickity, owl etc.) and in general slider & lightbox - so i hope this example be usefull for you.</p> | |
| <!-- Slider main container --> | |
| <div class="swiper-container"> |
| /* | |
| * Copyright 2017 Beldaz (https://github.com/beldaz) | |
| * Licensed to the Apache Software Foundation (ASF) under one or more | |
| * contributor license agreements. See the NOTICE file distributed with | |
| * this work for additional information regarding copyright ownership. | |
| * The ASF licenses this file to You under the Apache License, Version 2.0 | |
| * (the "License"); you may not use this file except in compliance with | |
| * the License. You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
| #!/bin/sh | |
| # install stable nginx | |
| # even though nginx will be replaced | |
| # by compiling from source | |
| # this installs latest versions | |
| # of required libs | |
| add-apt-repository -y ppa:nginx/stable \ | |
| && apt-get update \ | |
| && apt-get install -y nginx \ |
| <?php | |
| /** | |
| * The only reliable way of determining if a child exists | |
| * in SimpleXMLElement is to use count(). All other methods | |
| * do not work reliably in global or local NS. | |
| * | |
| * NOTE: Error suppresion on @count() is used to suppress | |
| * "PHP Warning: count(): Node no longer exists" | |
| */ | |
| if(!class_exists('SimpleXMLElement')) die("Bonkers"); |