Skip to content

Instantly share code, notes, and snippets.

View virtual-designer's full-sized avatar

Ar Rakin virtual-designer

View GitHub Profile

Contributor License Agreement (CLA) for Sudoc

Project Name: Sudoc
Primary License: GNU Affero General Public License v3.0 (AGPL-3.0)
Organization: OSN Developers


1. Purpose

@virtual-designer
virtual-designer / sources.list
Created February 20, 2024 09:16
Installing Discord Using APT
# Run the following command to import the GPG keys: wget -qO - https://discordpkg.onrender.com/packages/public.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/osn.gpg --import -
deb https://discordpkg.onrender.com/packages stable main
@virtual-designer
virtual-designer / server.s
Created September 26, 2023 17:54
A simple HTTP Server written in pure standalone x86_64 linux assembly
/*
* server.s -- a simple HTTP server written in pure stanalone x86_64 linux assembly.
* This program does not depend on any library or runtime, including libc.
*
* Copyright (C) 2023 Ar Rakin.
*/
.equ SYS_SOCKET, 41
.equ SYS_CLOSE, 3
.equ SYS_BIND, 49
@virtual-designer
virtual-designer / printf.s
Created September 22, 2023 04:09
libc-style `printf` implementation written in x86_64 assembly that supports `%c` and `%s`.
.data
str: .string "Hi world, my name is: %s KEKW\n"
str2: .string "Rakin"
.text
.globl _start
_start:
movq $str, %rdi
movq $str2, %rsi
@virtual-designer
virtual-designer / echo.c
Last active March 16, 2023 13:06
echo program
/* GNU-style echo command program */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef _HAVE_STDBOOL_H
#include <stdbool.h>
#else
typedef enum {