Skip to content

Instantly share code, notes, and snippets.

@RuiNelson
RuiNelson / README.md
Last active December 24, 2025 19:02
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?

@Chavao
Chavao / .git-hooks-pre-commit
Created May 15, 2015 17:57
Pre-commit para evitar esquecer "debugger;" no código!
#!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1; then
against=HEAD
else
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
for FILE in `git diff-index --name-status $against | cut -c3-` ; do
# Check if the file contains 'debugger'
@cam-gists
cam-gists / mpopper.js
Created July 27, 2012 15:47
JavaScript: Mobile Popunder
///Mobile PopUnder
var uri = "http://lander.com";
var site = "site.com ";
var func = 'firepop("'+uri+'")';
$(document).ready(function() {
$('.content a').attr('onclick', func);
$('.content a').attr('target', '_blank');
});
@andreyfedoseev
andreyfedoseev / local_settings.py
Created July 28, 2011 15:53
Django settings to enable separate database for specified git branches
# This snippet allows to use separate databases for specified git branches.
# These databases are created automatically as copies of the default database.
# It works only with PostgreSQL.
# If you use password to connect to your database you should add it to ~/.pgpass file!
# Add this to your local settings file.
from settings import *
import os, shlex, subprocess