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
| const { google } = require("googleapis"); | |
| const fs = require("fs"); | |
| // You need to go to Google Cloud console (console.cloud.google.com), then APIs | |
| // & Services -> Credentials. There, create a new service account (or reuse | |
| // existing if you have one). Click on a service account, go to Keys, and create | |
| // a new key, and download JSON for it. You'll use path to that JSON for | |
| // SERVICE_ACCOUNT_FILE var. | |
| // | |
| // Then, go to Google Play Console, then "Users and Permissions" on the left |
| const fetch = require("node-fetch"); | |
| const fs = require("fs"); | |
| const jwt = require("jsonwebtoken"); | |
| const util = require("util"); | |
| // To get the private key, go to App Store Connect (appstoreconnect.apple.com), then "Users and Access" | |
| // at the top. Then go to "Integrations" -> "App Store Connect API", under "Team Keys" create a new key, | |
| // and you'll be able to download the private key for it. | |
| const PRIVATE_KEY = fs.readFileSync("AuthKey_F2BLAHBLAH.p8", "utf8"); |
There are a few lists already, I thought I'd create another one so we can have a long list of lists someday. 🤠 Ordered by approximately which ones I actually use often.
This is an attempt to take a step back and summarize all proposed approaches to private messages (DMs, group chats, and general-purpose nostr-within nostr, including for large groups of people) for the purpose of building a secure, feature-complete, interoperable solution.
This topic has come up repeatedly over nostr's history, and has entered the limelight again because of HRF's e2e encrypted group chats bounty. The hope here is to get everyone on the same page and hammer out one or more NIPs that can incorporate the best parts of all proposed solutions so we can finally get secure messaging on nostr.
Please comment with thoughts, criticisms, missing proposals/implmentations, and I will update the gist as we go along.
| // ignore_for_file: curly_braces_in_flow_control_structures | |
| /* | |
| * Performance benchmark of different ways to append data to a list. | |
| * https://gist.github.com/PlugFox/9849994d1f229967ef5dc408cb6b7647 | |
| * | |
| * BytesBuilder | builder.add(chunk) | 7 us. | |
| * AddAll | list.addAll(chunk) | 594 us. | |
| * Spread | [...list, ...chunk] | 1016446 us. | |
| * Concatenation | list + chunk | 1005022 us. |
| import 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| class SliverAppBarStatus extends StatefulWidget { | |
| const SliverAppBarStatus({Key? key}) : super(key: key); | |
| @override | |
| _SliverAppBarStatusState createState() => _SliverAppBarStatusState(); | |
| } |
When I click on links from Slack or Outlook on MacOS they open in seemingly random browser windows/profiles. This is annoying.
Open links in a particular Google Chrome profile window based on the source application or URL. Be less annoyed.
chrome://version and find the desired profile name. Mine was Default. Copy that profile's directory name, like Profile 2 or Default, not the profile's vanity name you see when you click on your profile icon in the browser.brew install finicky. After install it should be running and you should see the icon in the upper toolbar.> Config > Create New (or edit ~/.finicky.js / ~/.finicky.ts).| --- | |
| version: "3.8" | |
| services: | |
| master: | |
| image: chrislusf/seaweedfs:latest | |
| command: master -mdir=/data | |
| networks: | |
| - weed |