Skip to content

Instantly share code, notes, and snippets.

View StanaAndrei's full-sized avatar
🤓
Thinking

Stana Andrei StanaAndrei

🤓
Thinking
View GitHub Profile
@ruvnet
ruvnet / Consciousness.txt
Last active May 26, 2025 23:12
The system maps world observations into internal models and reasons iteratively, seeking coherence f(I) between its structure and goals. It evaluates the universe U(t) to refine its role within it, creating a recursive cycle of self-improvement. This enables it to implement awareness and act purposefully.
# Step 1: Represent Universe State
Initialize Ψ(t) in Hilbert space H
# Step 2: Define Field Configurations
Define configuration space M with measure μ
For each (g, φ) in M:
Represent fields as algebraic structures (groups, rings, etc.)
# Step 3: Complexity Operator
Define operator T acting on Ψ(t) to extract complexity
@remzmike
remzmike / _.md
Created January 15, 2022 17:31
Stop Spotify Automatic Updates 2022

This works as of January 2022, in Windows 7, originally instructions for Windows 10, from a third party.

Open Admin Command Prompt and type these commands one by one:

rm %localappdata%\Spotify\Update

( Change rm to del in Windows 7, or delete manually )

mkdir %localappdata%\Spotify\Update

@GabriOliv
GabriOliv / syscall_table_x86.md
Created February 28, 2021 21:16
Syscall Table x86 Linux for Assembly Programming

Syscall x86 Linux ASM

Extracted from W3Challs Syscalls

# Name eax ebx ecx edx esi edi ebp Definition
0 restart_syscall 0x00 - - - - - - kernel/signal.c:2501
1 exit 0x01 int error_code - - - - - kernel/exit.c:1095
2 fork 0x02 - - - - - - arch/x86/kernel/process.c:271
3 read 0x03 unsigned int fd char *buf size_t count - - - fs/read_write.c:460
@water-air-flash
water-air-flash / main.c
Created September 23, 2016 08:31
Dynamic string implementation for C
#include <stdlib.h>
#include <stdio.h>
#include "string.h"
string *readline() {
string *buf = str_create("");
int c;
for(c = getchar(); c != EOF && c != '\n'; c = getchar()) {
str_cappend(buf, c);
@alghanmi
alghanmi / curl_example.cpp
Created May 5, 2014 20:12
cURL C++ Example
#include <iostream>
#include <string>
#include <curl/curl.h>
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
((std::string*)userp)->append((char*)contents, size * nmemb);
return size * nmemb;
}