Skip to content

Instantly share code, notes, and snippets.

View kevingatera's full-sized avatar

Kevin GATERA kevingatera

View GitHub Profile
@Fptbb
Fptbb / model-prices.csv
Last active April 17, 2025 01:01 — forked from t3dotgg/model-prices.csv
Rough list of popular AI models and the cost to use them (cost is per 1m tokens), Llama using Groq api on-demand
Name Input Output
Gemini 2.0 Flash-Lite $0.075 $0.30
Mistral 3.1 Small $0.10 $0.30
OpenAI gpt-4.1-nano $0.10 $0.40
Gemini 2.0 Flash $0.10 $0.40
DeepSeek v3 (old) $0.14 $0.28
Llama 4 Scout $0.11 $0.34
OpenAI 4o-mini $0.15 $0.60
Llama 4 Maverick $0.20 $0.60
xAI Grok 3 Mini $0.30 $0.50
@pamelafox
pamelafox / chatreadretrieveread.py
Created November 7, 2023 20:21
Chat approach with additional function call
import json
import logging
import re
from typing import Any, AsyncGenerator, Optional, Union
import aiohttp
import openai
from azure.search.documents.aio import SearchClient
from azure.search.documents.models import QueryType
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active April 26, 2025 20:19
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

@wojtekmaj
wojtekmaj / .gitignore
Last active March 13, 2025 21:30
How to upgrade Yarn to Yarn Modern (v4 at the moment) seamlessly
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
@sharunkumar
sharunkumar / adb-dns.bat
Created February 7, 2020 07:08
Enabling / Disabling private DNS in android via ADB
rem to disable private dns
adb shell settings put global private_dns_mode off
rem to enable private dns with hostname (example with dns.adguard.com)
adb shell settings put global private_dns_mode hostname
adb shell settings put global private_dns_specifier dns.adguard.com
@GAS85
GAS85 / nextcloud_fail2ban.md
Last active March 1, 2025 11:55
Harden Nextcloud 17+ with Fail2Ban, GUI and WebDAV - Ubuntu 20.04

Fail2ban and Nextcloud

Prerequsits

  • Ubuntu 20.04
  • nextcloud, fail2ban and e.g. iptables are installed

Note