Skip to content

Instantly share code, notes, and snippets.

View darius-telycenas's full-sized avatar

Darius Telyčėnas darius-telycenas

View GitHub Profile
@rdump
rdump / kubectl-multi-version-brews.md
Last active April 4, 2024 15:20
kubectl multi-version brews (kubernetes-cli formula)

kubectl multi-version brews

Applicability

The instructions below apply to older versions of Homebrew which still provide switch capability.

For current Homebrew, you'll likely need to keep Versions around, and build locally. Here's my versions repository https://github.com/rdump/homebrew-versions

MacPorts is now keeping versioned installations available as well, by default.

@sbeyer
sbeyer / lib.rs
Created May 16, 2021 23:00
For loop vs map in Rust
#![feature(test)]
extern crate test;
use std::net::*;
pub struct Foo {
a: u8,
b: u8,
c: u8,
@silbinarywolf
silbinarywolf / go.mod
Created October 5, 2021 07:56
Force pull in github.com/go-gl/glfw/v3.3/glfw via golang.org/x/exp
module github.com/silbinarywolf/grpc-repro
go 1.17
require (
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a
google.golang.org/grpc v1.39.0
)
@ChevyRay
ChevyRay / qoi.rs
Created November 24, 2021 22:49
QOI - Quote OK Image Format (Rust Port)
const INDEX: u8 = 0x0;
const RUN_8: u8 = 0x40;
const RUN_16: u8 = 0x60;
const DIFF_8: u8 = 0x80;
const DIFF_16: u8 = 0xc0;
const DIFF_24: u8 = 0xe0;
const COLOR: u8 = 0xf0;
const MASK_2: u8 = 0xc0;
const MASK_3: u8 = 0xe0;
@cablej
cablej / default.md
Created June 21, 2025 18:46
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.