Skip to content

Instantly share code, notes, and snippets.

View vedmalex's full-sized avatar
💭
Cool!

Vedanta-krit das (Alex Vedmedenko) vedmalex

💭
Cool!
View GitHub Profile
@OmerFarukOruc
OmerFarukOruc / opencode-kimi-setup.md
Last active March 16, 2026 12:25
OpenCode + Kimi For Coding (K2.5) Setup

OpenCode + Kimi For Coding (K2.5) Setup

1. Add credentials

opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
@musistudio
musistudio / gemini-cli.js
Last active February 13, 2026 09:04
GeminiCLITransformer
const os = require("os");
const path = require("path");
const fs = require("fs/promises");
const OAUTH_FILE = path.join(os.homedir(), ".gemini", "oauth_creds.json");
// Type enum equivalent in JavaScript
const Type = {
TYPE_UNSPECIFIED: "TYPE_UNSPECIFIED",
STRING: "STRING",
@amiorin
amiorin / README.md
Last active January 15, 2026 09:16
How to configure Home Row Mods with KMonad on macOS

Intro

Karabiner and KMonad are great open source software. Don't forget to support the authors and contributors.

If you want to try home row mods on OSX, don't use Karabiner but KMonad. KMonad is harder at the beginning but then it is easier than Karabiner. Creating layers in KMonad is trivial and without drawbacks, while it is impossible in Karabiner without drawbacks.

You need to compile a PR of the project. Install https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice/releases/download/v2.1.0/Karabiner-DriverKit-VirtualHIDDevice-2.1.0.pkg

@sebastianfdez
sebastianfdez / BTree.js
Last active May 18, 2024 06:33
FINAL COMPLETE BTREE CLASS
export class BTreeNode {
constructor(isLeaf) {
/**
* @type {number[]} list of values in the node
*/
this.values = [];
/**
* @type {boolean} is a leaf
*/
this.leaf = isLeaf;
@mfellner
mfellner / graphql.ts
Created July 8, 2019 20:42
Using Apollo Server in Next.js 9 with API route in pages/api/graphql.ts
import { ApolloServer, gql } from 'apollo-server-micro';
const typeDefs = gql`
type Query {
sayHello: String
}
`;
const resolvers = {
Query: {
@bradtraversy
bradtraversy / rethinkdb_cheat_sheet.MD
Last active January 30, 2026 06:21
RethinkDB Query Cheat Sheet

RethinkDB Cheat Sheet

Create database

r.dbCreate('mydb')

List databases

@FluorescentHallucinogen
FluorescentHallucinogen / directive-definition.graphql
Created April 24, 2019 18:00
@hasRole GraphQL custom directive
directive @hasRole (
OR: [ConstraintInput!]
NOT: [ConstraintInput!]
AND: [ConstraintInput!]
has_some: [UserRole!]
has_every: [UserRole!]
) on OBJECT | FIELD_DEFINITION
input ConstraintInput {
OR: [ConstraintInput!]
@trandaison
trandaison / starUML.md
Last active February 15, 2026 10:20
Get full version of StarUML
@danielquisbert
danielquisbert / download_ext6.2.0.md
Last active March 10, 2025 23:03
Download extJS gpl 6.2
@pcan
pcan / README.md
Last active April 3, 2025 02:58
Node.js plain TLS Client & Server, 2-way Cert Auth

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Newer versions of openssl are stricter about certificate purposes. Use extensions accordingly.

Prepare certificates

Generate a Certificate Authority: