Instructions on running Dive a HOST application for LLMs with MCP support.
Use one of the install methods at Dive Ai Agent
Run dive like:
./Dive-0.7.2-linux-x86_64.AppImage --no-sandbox
Instructions on running Dive a HOST application for LLMs with MCP support.
Use one of the install methods at Dive Ai Agent
Run dive like:
./Dive-0.7.2-linux-x86_64.AppImage --no-sandbox
This short guide explains how to create an NPM package that can be called as a script from another project. For clarity: The package to execute will be called: Module The place where you use it: Application
Create a standard module ignore command line parsing
| # not really an sh file but the sequence I used to install, might work as .sh but haven't tried | |
| # If running as .sh with sudo it might not need the sudo's | |
| # 1. Clone the repo and create the directories | |
| git clone https://github.com/albfan/miraclecast.git | |
| cd miraclecast/ | |
| mkdir build | |
| cd build/ | |
| # 2. There's lots of dependencies not listed | |
| sudo apt-get install autoconf automake libtool libudev-dev libsystemd-dev libglib2.0-dev libreadline-dev | |
| # 3. Continue the building process |
| // From https://www.sitepoint.com/cache-fetched-ajax-requests/ | |
| // All credits to: Peter Bengtsson | |
| // Added Content-type to headers so it can go to traditional validation like fetch does | |
| // Add some debugging messages: activate with { verbose: true } | |
| // Add a request to be able to add headers instead of just calling URL | |
| const CachedFetch = (url, options) => { | |
| let expiry = options.seconds || 5 * 60 // 5 min default | |
| let logger = (options.verbose) ? console.log : function(){}; |
| const fs = require('fs-extra'); | |
| const methods = {}, priv = {}; | |
| // Private methods to do string replacement. Not optimized and cummulative trying to keep it simple. | |
| // far better options here: https://stackoverflow.com/questions/5069464/replace-multiple-strings-at-once | |
| priv.replaceObj = function(value, vars) { | |
| let obj = value; | |
| Object.keys(obj).forEach(function(item) { | |
| obj[item] = priv.replaceStr(obj[item], vars); | |
| }); | |
| return obj; |
I tried to run https://dev.to/andraconnect/augmented-reality-in-10-lines-of-html and https://github.com/jeromeetienne/ar.js from my own computer and got the following error:
Can't access user media :()
This error comes from:
https://github.com/jeromeetienne/jsartoolkit-experiments/blob/master/basic.html Line 100: navigator.getUserMedia
| git commit -m "Something terribly misguided" # (0: Your Accident) | |
| git reset HEAD~ # (1) | |
| #[ edit files as necessary ] # (2) | |
| git add . # (3) | |
| git commit -c ORIG_HEAD # (4) | |
| #Ref: https://stackoverflow.com/questions/927358/how-do-i-undo-the-most-recent-local-commits-in-git |
| #Tweak timing between key sequence | |
| set -s escape-time 0 | |
| ## active window title colors | |
| set-window-option -g window-status-current-attr bright | |
| # Set prefix to Ctrl-Space instead of Ctrl-b | |
| unbind C-b | |
| set -g prefix C-Space | |
| bind Space send-prefix |
| #!/bin/bash | |
| filetype=png | |
| for i in *.$filetype; do | |
| name=$(echo $i | sed 's/\.[^.]*$//') | |
| echo "Processing: $i" | |
| mkdir -p $name | |
| convert $i -resize 700x700\> $name/700; | |
| convert $i -resize 460x460\> $name/460; |
| // src/utils/CacheCollection.js | |
| /** | |
| * Creates a collection of unique values in local storage | |
| * Works with arrays only | |
| * Singleton method to allow sharing between classes without adding extra stuff | |
| */ | |
| class CacheCollection { | |
| constructor (key, expire=1200) { | |
| this.key = key; | |
| this.expire = expire; |