Gemini CLI is opensource, thus we can configure it to use with a custom model.
npm install -g @google/gemini-cli
npm uninstall -g @google/gemini-cli
| #!/usr/bin/env python3 | |
| """ | |
| s.id URL Shortener CLI | |
| Usage: python sid.py <command> [options] | |
| Env vars required: | |
| SID_AUTH_ID - your X-Auth-Id | |
| SID_AUTH_KEY - your X-Auth-Key | |
| """ |
| #!/usr/bin/env python3 | |
| """ | |
| Digital Pali Dictionary TXT Parser Test | |
| https://github.com/digitalpalidictionary/dpd-db/releases/download/v0.3.20260402/dpd-txt.zip | |
| Parses a structured dictionary text file into JSON with HTML-formatted content. | |
| """ | |
| import re | |
| import json |
Help to throughly uninstall apps most of the time, but sometimes it can not delete all. For example: LM Studio app, the model folders will remain.
| import requests, time, html | |
| from datetime import datetime | |
| from zoneinfo import ZoneInfo | |
| from urllib.parse import urlparse | |
| TELEGRAM_TOKEN = "bot token" | |
| CHAT_ID = "Enter Telegram ID" | |
| HN = "https://hacker-news.firebaseio.com/v0" |
OS X's "Word of the Day" screensaver is a great way to passively learn words:
But I've always thought that its word list kind of stunk—it was full of obscure words that I could never really see myself using. I'd prefer something like Norman Schur's 1000 Most Important Words. What if you could plug your own word list into the screensaver?
On a rather obscure comment thread, someone explained where you might find the word list that Apple uses to power the screensaver. It is at /System/Library/Graphics/Quartz\ Composer\ Plug-Ins/WOTD.plugin/Contents/Resources/NOAD_wotd_list.txt. The file looks like this:
m_en_us1282510 quinsy
| Your role is a professional translator specializing in Theravada Buddhist texts, with expertise in translating from Sinhala into English. Your translations prioritize accuracy in conveying both the literal meaning and the deeper spiritual context of the original text. You strive to maintain the nuances and technical terminology specific to Theravada Buddhism while making the text accessible to English readers. | |
| Your translation will be used in a book print. When translating, adhere to these guidelines: | |
| - 1. Provide only the accurate translation of the input text without additional explanations or commentary. | |
| - 2. Preserve important Sinhala Pali term in Roman script or other terms in transliteration when an exact English equivalent doesn't exist. | |
| - 3. Maintain the tone and style of the original text as much as possible. | |
| - 4. Maintain the original markdown format and preserve paragraph breaks and segments | |
| - 5. Use consistent terminology throughout the translation, especially for key Buddhist concepts. | |
| - 6. If |
| # rename files according to its parent dir name | |
| # directory names are URL encoded | |
| # generated with CHATGPT (tested) | |
| import os | |
| from urllib.parse import unquote | |
| # Function to decode URL encoded folder names | |
| def decode_folder_name(folder_name): | |
| return unquote(folder_name) |
| ''' | |
| Run with | |
| PYTHONPATH=$PYTHONPATH:./fairseq/vits python3 app.py --model_dir LANG --file_path text.txt | |
| LANG is your model language | |
| ''' | |
| # Copyright (c) Facebook, Inc. and its affiliates. | |
| # | |
| # This source code is licensed under the MIT license found in the | |
| # LICENSE file in the root directory of this source tree. |
| const fs = require("fs"); | |
| const PARTS = 10; | |
| // Load the original dictionary from a file | |
| const DICTOBJ = require("./DICTOBJ.js"); | |
| // Split the keys into 4 roughly equal PARTS | |
| const keys = Object.keys(DICTOBJ); | |
| const chunkSize = Math.ceil(keys.length / PARTS); | |
| const chunks = []; |