Skip to content

Instantly share code, notes, and snippets.

View NonpareilNic's full-sized avatar

DuckTapeDevOps NonpareilNic

View GitHub Profile
@NonpareilNic
NonpareilNic / config.yaml
Created February 13, 2026 18:24
Continue.dev Config
# Continue config.yaml (Bedrock, role-split for cost + UX)
# Source of modelIds below: your exported Bedrock model list :contentReference[oaicite:0]{index=0}
#
# Mental model:
# - chat: highest quality reasoning; fewer calls; OK to spend more per token
# - autocomplete: *tons* of calls; latency + cost dominate; keep maxTokens small
# - edit/apply: medium frequency; can be cheaper than chat; you review output anyway
# - rerank: scoring model; cheap per query; improves retrieval quality before chat
name: "bedrock-continue"
""" To use: install Ollama, clone OpenVoice, run this script in the OpenVoice directory
brew install portaudio
brew install git-lfs
git lfs install
git clone https://github.com/myshell-ai/OpenVoice
cd OpenVoice
git clone https://huggingface.co/myshell-ai/OpenVoice
cp -r OpenVoice/* .
@NonpareilNic
NonpareilNic / .py
Created October 4, 2023 04:35
Touch Designer Push To Talk
# me - this DAT.
# webServerDAT - the connected Web Server DAT
# request - A dictionary of the request fields. The dictionary will always contain the below entries, plus any additional entries dependent on the contents of the request
# 'method' - The HTTP method of the request (ie. 'GET', 'PUT').
# 'uri' - The client's requested URI path. If there are parameters in the URI then they will be located under the 'pars' key in the request dictionary.
# 'pars' - The query parameters.
# 'clientAddress' - The client's address.
# 'serverAddress' - The server's address.
# 'data' - The data of the HTTP request.
# response - A dictionary defining the response, to be filled in during the request method. Additional fields not specified below can be added (eg. response['content-type'] = 'application/json').
import boto3
import ruamel.yaml
import git
DASHBOARD_LIVE = 'webpage.com.'
DASHBOARD_DEMO = 'demo.webpage.com.'
API_LIVE = 'api.webpage.com'
API_DEMO = 'api-demo.webpage.com'
HOSTED_ZONE_ID = '/hostedzone/M4D3UPH4SH'
@NonpareilNic
NonpareilNic / steps-skeleton.yml
Created August 8, 2018 08:57
A skeleton form of Bitbucket Pipelines build for two steps and a dev and master branch
options:
docker: true
pipelines:
branches:
dev:
- step:
image: tstrohmeier/awscli:3.6.4
script:
- Dashbaord commands go here
@NonpareilNic
NonpareilNic / script-example.yml
Last active August 8, 2018 08:53
A single script as part of a bitbucket-pipelines.yml used to upload a docker image to AWS via Bitbucket Pipelines
script:
# aws login
- eval $(aws ecr get-login --region ${AWS_DEFAULT_REGION} --no-include-email)
#set service and cluster names
- export DASHBOARD_SERVICE=DashboardService
- export DASHBOARD_CLUSTER=DashboardCluster
# set task and execrole
- export DASHBOARD_TASK_NAME=DashboardTask
- export EXECROLE=arn:aws:iam::123456789012:role/ecsTaskExecutionRole
# BUILD_ID set to iterate based on build number