There are a many ways to run Nextcloud:
- on localhost, on a VPS, or in a Docker container
- using Apache, nginx,
php -S - from git, from zip, via snap
- With nc-sciencemesh enabled: pondersource/sciencemesh-nextcloud#demo-setup
| { | |
| "tools": [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "codebase_search", | |
| "description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { |
| <?php | |
| //REQUIREMENTS! | |
| //"phpseclib/phpseclib": "^3.0" | |
| //"lcobucci/jwt": "^5.0" | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| $json = '{ | |
| "keys": [ | |
| { |
There are a many ways to run Nextcloud:
php -S| /* Add dependencies needed to call `addPageToStorage` */ | |
| $('head').append('<script src="chrome-extension://eiimnmioipafcokbfikbljfdeojpcgbh/options.js"></script>'); | |
| $('body').append('<span id="login_label" style="display:none;"></span>'); | |
| trackButton = function(){}; | |
| init = function(){}; | |
| /* Define our custom event handler */ | |
| function handleLoginEvent(event) { | |
| if(event.keyCode === undefined || event.keyCode === 13){ |
| # Add this config | |
| $ heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib | |
| # Login to Heroku CLI | |
| $ heroku run bash | |
| # The second argument here is the path to your script | |
| ~ $ ~/php/bin/php -f ~/www/index.php |
| #!/bin/bash | |
| phpunit | |
| EXIT_CODE="$?" | |
| if [ $EXIT_CODE -eq "255" ]; then | |
| # Wrapping the error code to 1, so bisect marks this build as "bad" and continues. | |
| exit 1 | |
| fi |