r/code • u/mehdiweb • 1d ago
Resource Cursor Ultra for $18 instead of $200. seriously how?
been using it for 3 months, no issues. feels too cheap to be real. if they’re still making money at this price, how are they getting the accounts?
r/code • u/mehdiweb • 1d ago
been using it for 3 months, no issues. feels too cheap to be real. if they’re still making money at this price, how are they getting the accounts?
r/code • u/Weekly-Patient7832 • 1d ago
Recently I have been working on a macOS app called Stash and I'd like to share it with yall.
I always found the built-in clipboard experience on Mac way too limited, so I decided to try building something better. And trust me, I use it daily.
Stash sits in your menu bar and gives you quick access to your clipboard history.
You can hold Option to bring up a little floating HUD, press Option + 1–5 to paste something instantly, or use Option + Space to open your full clipboard library.
It supports text and images, and you can search, pin, delete and manage your history.
A few other things:
Completely free, no subscriptions.
Open source (MIT).
Everything stays stored locally on your Mac.
Built natively with SwiftUI and AppKit.
It's honestly still a work in progress, and installation isn't quite as straightforward as I'd like yet (you currently need to build it locally).
I'm mainly sharing it to get some feedback. I'd be interested to hear what people think, what could be improved, or whether there's anything you'd want in a clipboard manager. And hopefully it's as useful to you as it is to me.
r/code • u/SuperGabry64 • 4d ago
r/code • u/Background-Ear7642 • 8d ago
its github.com/kds1123001/mini-gdb even a company wanted to collab with me on this
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/user.h>
#include <unistd.h>
void run_debugger(pid_t child_pid) {
int wait_status;
long orig_rax;
// Wait for the child process to stop at execution
waitpid(child_pid, &wait_status, 0);
while (WIFSTOPPED(wait_status)) {
char command[32];
printf("mini-gdb> ");
if (scanf("%31s", command) != 1) break;
if (strcmp(command, "cont") == 0 || strcmp(command, "c") == 0) {
ptrace(PTRACE_CONT, child_pid, NULL, NULL);
waitpid(child_pid, &wait_status, 0);
} else if (strcmp(command, "exit") == 0) {
ptrace(PTRACE_KILL, child_pid, NULL, NULL);
break;
} else {
printf("Unknown command. Try 'cont' or 'exit'.\n");
}
}
}
int main(int argc, char *argv[]) {
if (argc < 2) {
fprintf(stderr, "Usage: %s <program>\n", argv[0]);
return 1;
}
pid_t pid = fork();
if (pid == 0) {
// Child process: allow tracing and execute target
ptrace(PTRACE_TRACEME, 0, NULL, NULL);
execl(argv[1], argv[1], NULL);
perror("execl");
exit(1);
} else if (pid > 0) {
// Parent process: run the debugger loop
run_debugger(pid);
} else {
perror("fork");
return 1;
}
return 0;
}ts is just a small snippet of code lol
First of multi part series that goes into C++ fundamentals.
r/code • u/Speedk4011 • 13d ago
r/code • u/donutloop • 26d ago
r/code • u/waozen • Oct 14 '26
r/code • u/Global_Baby_9750 • Oct 10 '26
I'm working on OnyxChat, a messaging project with components written in Rust, C, C++, Lua, and Python.
I'm interested in feedback on the Rust side of the project, particularly the boundaries between components, error handling, testability, and how clearly the implementation reflects the documented architecture.
The repository also contains protocol, security, privacy, and testing documentation. The project is under development and has not received an independent security audit, so I'm not presenting it as a production-ready or independently verified secure messenger.
One detail that may be relevant to contributors: the repository's documentation, comments, and language-consistency tests currently use European Portuguese (PT-PT). That convention can be discussed and refactored collaboratively if justified.
Repository: https://github.com/Shega-PT/OnyxChat
If this kind of review is appropriate for this community, I'd appreciate pointers to specific design choices or implementation details worth examining. I'll follow the community's self-promotion rules.
r/code • u/waozen • Oct 08 '26
r/code • u/waozen • Oct 06 '26
r/code • u/wizard_creator_seth • Oct 04 '26
r/code • u/Treechcer • Oct 03 '26
Hi, I'm working on my own programming language, I've release first stable version (v 0.1.0), I'd like to get feedback. It's on most OS platforms (even Andoird and in the future IOS).
r/code • u/waozen • Oct 03 '26
Every shell script eventually needs somewhere to put something. The usual answer looks reasonable and has three separate problems... mktemp is on macOS, Debian and Ubuntu.
r/code • u/wizard_creator_seth • Sep 29 '26
r/code • u/waozen • Sep 27 '26