The following guide will show you how to connect a local model served with MLX to OpenCode for local coding.
1. Install OpenCode
curl -fsSL https://opencode.ai/install | bash
<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>
<general_guidelines>
| #!/usr/bin/python | |
| ## arXiv script version 0.3 | |
| ## Copyright 2015 Tom Brown | |
| ## This program is free software; you can redistribute it and/or | |
| ## modify it under the terms of the GNU General Public License as | |
| ## published by the Free Software Foundation; either version 3 of the | |
| ## License, or (at your option) any later version. |
| javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard |
| // ==UserScript== | |
| // @name HN Chat Mode | |
| // @namespace https://news.ycombinator.com/ | |
| // @version 2024-09-18 | |
| // @description live comments updater | |
| // @author You | |
| // @match https://news.ycombinator.com/item* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=news.ycombinator.com | |
| // @grant none | |
| // ==/UserScript== |
| export const Component = () => { | |
| const servicesRef = useRef<HTMLAnchorElement>(null); | |
| const isServicesHovered = useHover(servicesRef); | |
| return ( | |
| <Popover.Root open={isServicesHovered}> | |
| <Popover.Trigger asChild> | |
| <Link href="/" ref={servicesRef}> | |
| Services | |
| </Link> |
| #!/bin/bash | |
| # Setup script for Tinygrad, including all supported backends, made it for WSL2 Ubuntu 22.04 running on Windows 10/11 with an up-to-date Nvidia GPU driver (it should work for native Ubuntu too) | |
| # To use this script, save it in a file: nano setup_environment.sh | |
| # give it execute permissions: chmod +x setup_environment.sh | |
| # and then run it: ./setup_environment.sh | |
| # Make sure to run it in a terminal where you have administrative (sudo) access, as some steps require it. | |
| # Initialize variables |
Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.
So now, there's a scribe for that :
| MONGODB_URI=[YOUR_MONGO_DB_URL] | |
| GITLAB_HOST=[YOUR_GITLABHOST_URL] | |
| GITLAB_PROJECT_ID=[YOUR_GITLAB_PROJECT_ID] | |
| GITLAB_BRANCH=[YOUR_GITLAB_BRANCH] | |
| GITLAB_PERSONAL_ACCESS_TOKEN=[YOUR_GITLAB_TOKEN] | |
| TINA_PUBLIC_IS_LOCAL=false | |
| # _optionally_ Use Tina Cloud for user authentication | |
| #NEXT_PUBLIC_TINA_CLIENT_ID=*** |