Skip to content

Instantly share code, notes, and snippets.

View dexcompiler's full-sized avatar
💭
I may be slow to respond.

Dexter Ajoku dexcompiler

💭
I may be slow to respond.
View GitHub Profile
@dexcompiler
dexcompiler / default.md
Created July 9, 2025 01:55 — forked from cablej/default.md
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.
@dexcompiler
dexcompiler / Metrics.cs
Created October 29, 2023 00:48 — forked from NickCraver/Metrics.cs
MetricsPrototyping
using System.Collections.Concurrent;
using System.Collections.Immutable;
using System.Collections.Generic;
using System.Net;
using System.Threading;
using System;
namespace MetricsPrototype
{
public class Example
@dexcompiler
dexcompiler / sql-load-runner.linq
Last active October 19, 2023 23:53 — forked from NickCraver/Readme.md
A simple LINQPad script I wrote for load testing SQL Server.
<Query Kind="Program">
<Namespace>System.Threading.Tasks</Namespace>
</Query>
SqlConnectionStringBuilder csb = new SqlConnectionStringBuilder
{
IntegratedSecurity = true,
MaxPoolSize = 500,
DataSource = ".",
InitialCatalog = "Local.StackExchange.Meta"
@dexcompiler
dexcompiler / InterlockedState.cs
Created October 2, 2023 02:50 — forked from StephenCleary/InterlockedState.cs
Helper methods for working with interlocked state
using System;
using System.Threading;
/// <summary>
/// Interlocked helper methods.
/// </summary>
public static class InterlockedState
{
/// <summary>
/// Executes a state transition from one state to another.
@dexcompiler
dexcompiler / memory_docs_samples.md
Created October 1, 2023 23:32 — forked from GrabYourPitchforks/memory_docs_samples.md
Memory<T> API documentation and samples

Memory<T> API documentation and samples

This document describes the APIs of Memory<T>, IMemoryOwner<T>, and MemoryManager<T> and their relationships to each other.

See also the Memory<T> usage guidelines document for background information.

First, a brief summary of the basic types

  • Memory<T> is the basic type that represents a contiguous buffer. This type is a struct, which means that developers cannot subclass it and override the implementation. The basic implementation of the type is aware of contigious memory buffers backed by T[] and System.String (in the case of ReadOnlyMemory<char>).
@dexcompiler
dexcompiler / memory_address_printing.c
Created August 21, 2023 20:36 — forked from oliviagallucci/memory_address_printing.c
How to find a where a variable points to in memory
// include the standard input/output library for functions like printf
#include <stdio.h>
// the main function, the entry point of the program
int main() {
// declare a pointer variable named boop
int *boop;
// declare an integer variable named value and initialize it to 42
@dexcompiler
dexcompiler / websites.csv
Created August 21, 2023 20:33 — forked from bejaneps/websites.csv
List of top 1000 websites
1 fonts.googleapis.com 10
2 facebook.com 10
3 twitter.com 10
4 google.com 10
5 youtube.com 10
6 s.w.org 10
7 instagram.com 10
8 googletagmanager.com 10
9 linkedin.com 10
10 ajax.googleapis.com 10

kubectl commands and tips&tricks for CKA, CKAD and CKS exams

Quickly retrieve imperative commands to create k8s resources.

Command: k run -h | grep '# ' -A2

When is it useful: copy/paste command to notepad, edit values and execute to create desired resource

Result: list of different ways to create k8s resources imperatively using kubectl