Skip to content

Instantly share code, notes, and snippets.

View jurabek's full-sized avatar
🎱

Jurabek Azizkhujaev jurabek

🎱
View GitHub Profile
@RuiNelson
RuiNelson / README.md
Last active February 12, 2026 11:54
How to Use GLM Coding Plan and Claude Pro/Max Simultaneously with Claude Code on macOS

Who is this script for?

For those who have a Claude (Anthropic) account and a GLM Coding Plan (Z.ai) account and want to use Claude Code for both.

What does this script solve?

On macOS, Claude Code stores access credentials in the Keychain (macOS Keychain is a secure database that the operating system provides to applications for storing secrets). This makes the setup more secure but less programmatically configurable.

How does this script solve this problem?

@cyrenity
cyrenity / k8s-using-talos-in-vms.md
Last active October 24, 2025 08:56
Setup kubernetes cluster using Talos (Lab)

Setup Kubernetes cluster in minutes using Talos

1. Get talosctl

Download and install talosctl binary

wget https://github.com/talos-systems/talos/releases/download/v0.8.1/talosctl-linux-amd64
@hermanbanken
hermanbanken / kustomize_vars.md
Created November 22, 2020 13:11
Kustomize Vars example

This was initially posted in an kubernetes-sigs/kustomize issue.

We are using Kustomize's vars feature. Initially we didn't understand how to use it for our purpose, but it is a 100% fit. One example is our Ingress resource, which looks like this:

# file: base/ingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: services
@inaiat
inaiat / envoy-filter.yaml
Created April 25, 2020 16:50
Setting request headers with values from a JWT
apiVersion: "security.istio.io/v1beta1"
kind: RequestAuthentication
metadata:
name: echoserver
namespace: default
spec:
selector:
matchLabels:
app: echoserver
jwtRules:
@smira
smira / README.md
Last active January 9, 2026 20:00
Talos on Firecracker

Talos on Firecracker

  1. Build Firecracker from source (it's fast and easy, builds in docker): https://github.com/firecracker-microvm/firecracker/blob/master/docs/getting-started.md#building-from-source

  2. Adjust /dev/kvm permissions: https://github.com/firecracker-microvm/firecracker/blob/master/docs/getting-started.md#prerequisites

  3. Build Talos, you will need build/vmlinux & build/initramfs.xz.

  4. Prepare configs for Talos: osctl config generate fire https://172.16.0.2:6443. Make following changes to the config: add resolvers to the machine.network config: nameservers: ["8.8.8.8", "1.1.1.1"] (IP config will come from kernel args), update install location: install: disk: /dev/vda (default is sda).

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: authn-filter
namespace: ns1
spec:
workloadLabels:
#include namespace in the label to avoid clashes across namespaces
authn-ns1: enabled
filters:
#!/bin/sh
# ipv6-off.sh
# Disable IPv6 on all interfaces.
IFS=$'\n'
net=`networksetup -listallnetworkservices | grep -v asterisk`
for i in $net
do
networksetup -setv6off "$i"
@kleysonr
kleysonr / KafkaConsumerSample.java
Created January 15, 2018 21:29
Java Kafka Producer/Consumer Sample
package sample1;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Base64;
import java.util.Properties;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
@ara-ta3
ara-ta3 / main.go
Created August 31, 2017 10:11
How to bind to struct with join query in sqlx
package main
import (
"fmt"
_ "github.com/go-sql-driver/mysql"
"github.com/jmoiron/sqlx"
)
type Hoge struct {
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active February 14, 2026 13:33
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution