This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model_list: | |
- model_name: gpt-3.5-turbo | |
litellm_params: | |
model: openai/devstral-small-2507-mlx@8bit | |
api_base: http://localhost:1234/v1 | |
api_key: dummy-key | |
timeout: 600 | |
stream: true | |
# General settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
# You can comment this out now that we've found the problem | |
# exp_internal 1 | |
# --- Configuration --- | |
set command "/Users/bsonntag/.nvm/versions/node/v24.0.2/bin/claude" | |
set args "/init" | |
# CHANGE THIS LINE: Add a wildcard * to jump over the formatting codes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
import time | |
import random | |
while True: | |
x = random.randint(0,1000) | |
y = random.randint(0,1000) | |
pyautogui.moveTo(x,y) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Simple undefined method checker | |
# This script looks for potential undefined method calls by checking: | |
# 1. Method calls on objects that might not have those methods | |
# 2. Common patterns that could indicate undefined methods | |
# 3. Caching previous results to highlight new findings | |
require 'find' | |
require 'json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local lastOpenedLink = nil | |
local lastOpenedTime = 0 | |
function openMeetingLink(link) | |
local now = os.time() | |
if link and (link ~= lastOpenedLink or now - lastOpenedTime > 600) then | |
hs.urlevent.openURL(link) | |
lastOpenedLink = link | |
lastOpenedTime = now | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Given n, i.e. total number of nodes in an undirected graph numbered | |
from 1 to n and an integer e, i.e. total number of edges in the | |
graph. Calculate the total number of connected components in the graph. | |
A connected component is a set of vertices in a graph that are linked | |
to each other by paths. | |
O(E^2 log E) | |
mine un-sorted: 15421ms | |
mine un-sorted and Set nodes: 41ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extractJobs(linkedInResponse) { | |
const jobs = []; | |
const jobElements = linkedInResponse?.data?.data?.searchDashClustersByAll?.elements?.[0]?.items || []; | |
const jobDetails = linkedInResponse?.included || []; | |
jobElements.forEach(({ item }) => { | |
const entityUrn = item?.["*entityResult"]; | |
if (!entityUrn) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// expand all folders before running and | |
// zoom out so all guild icons are visible | |
function extractAndProcessIds() { | |
const elements = document.querySelectorAll('[data-list-item-id^="guildsnav___"]'); | |
const uniqueIdsArray = Array.from(elements) | |
.map(el => el.getAttribute('data-list-item-id').replace('guildsnav___', '')) | |
.filter(id => !isNaN(id)) | |
.reduce((acc, id) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ts-node | |
/** | |
* Used this Huggingface space to create a JSON formatted file | |
* https://huggingface.co/spaces/Xenova/whisper-speaker-diarization | |
* | |
* https://huggingface.co/onnx-community/whisper-base_timestamped | |
* https://huggingface.co/onnx-community/pyannote-segmentation-3.0 | |
* https://huggingface.co/pyannote/segmentation-3.0 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$amiInfo = aws ec2 describe-images --owners self --query 'Images[*].{ImageId:ImageId, CreationDate:CreationDate, Name:Name}' --output json | ConvertFrom-Json | |
$amiResults = @() | |
# $count = $amiInfo.Length; | |
# Write-Host "getting data for $count AMIs" | |
foreach ($ami in $amiInfo) { | |
$amiId = $ami.ImageId | |
$creationDate = $ami.CreationDate |
NewerOlder