Skip to content

Instantly share code, notes, and snippets.

!nyi

/dts-v1/;
/memreserve/ 0x0000000080000000 0x0000000000080000;
/ {
compatible = "cvitek,cv181x";
#size-cells = <0x02>;
#address-cells = <0x02>;
model = "Milk-V DuoS";
top_misc_ctrl@3000000 {
@zeyi2
zeyi2 / sh-gpt.md
Last active January 26, 2025 12:48
Ready, set, go!

sh-gpt

Overview

sh-gpt is a shell interface for interacting with ChatGPT API.

I made this small script because I don't want to open a browser, and I also want local copies of my chats.

The code is just a mess, but it works anyways. After all, it's just a script.

@zeyi2
zeyi2 / hacks.md
Last active September 13, 2024 06:56
Some hacks I use

Hacks

Note: This document contains some simple hacks that I use regularly.

Shell Scripts

Add one line to your C/C++/Python code to make it a script.

C++ Code

The following script provides a convenient way to compile and execute C++ code directly from the command line: