Skip to content

Instantly share code, notes, and snippets.

View konstantinosbotonakis's full-sized avatar
🌍
The future belongs to those who believe in the beauty of their dreams!

Konstantinos konstantinosbotonakis

🌍
The future belongs to those who believe in the beauty of their dreams!
View GitHub Profile
@olafgeibig
olafgeibig / README.md
Last active September 19, 2025 04:09
Z.ai subscription with opencode

Z.ai subscription with opencode

Now Z.ai has an official solution to use the package. See below.

Create a custom provider

First we need to create a custom provider for the Z.ai anthropic API. Follow the instructions for adding a custom provider to opencode.

  • Name it zai-anthropic
  • Enter your API-key

Configure the custom-provider

Edit opencode.json and add this:

@fevangelou
fevangelou / my.cnf
Last active November 5, 2025 13:22
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated September 2024 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@rohityadavcloud
rohityadavcloud / my.cnf
Created July 27, 2015 10:19
Example MySQL my.cnf optimized
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
syslog