Skip to content

Instantly share code, notes, and snippets.

View foxyfocus's full-sized avatar
🎯
Focusing

Evelyn Herzog foxyfocus

🎯
Focusing
View GitHub Profile
@lassekongo83
lassekongo83 / fedora-gnome-minimal.sh
Last active April 22, 2025 01:52
A script to install a minimal GNOME on a minimal Fedora Everything install
#!/bin/bash
# This is a script that will install a minimal GNOME on a minimal Fedora Everything install
# This script was made for Fedora 38
# 1. Get the Fedora Everything ISO: https://alt.fedoraproject.org/
# 2. When installing select "Minimal install" where you select software.
# Install curl to download and run this script trough that, or just copy paste the lines
# Let's make dnf a little bit faster first
@nicknapoli82
nicknapoli82 / c_memory.org
Last active November 30, 2024 21:38
Everything in c is a pointer!

Everything in C is a pointer!

That’s right. I’m making this statement. This little write-up is an attempt at explaining how any why everything in the c programming language is actually just a pointer. This is simply an attempt at explaining how memory in the computer is arranged in a narrowed view and my real goal is to consider the most simple examples possible.

I will be focusing on x86 specifically.

Types in c (bits and bytes) - and pointers

I would feel pretty confident that you, by now, understand that the types in c are simply identifiers in how much space is used to represent a number. I have no interest in explaining the difference between signed vs unsigned integers. Nor am I going to explain how floating point numbers are represented. If you are interested in those things take a look at these two links. C data types and [[https://en.wikipedia.org/wiki/Floating-point_ari

@mattgathu
mattgathu / main.rs
Last active November 7, 2024 07:53
Simple Event Hooks in Rust, Observer pattern in Rust
use std::io;
use std::str;
use std::error::Error;
use std::io::{Read, Write};
use std::net::TcpStream;
#[allow(unused_variables)]
pub trait Events {
fn on_connect(&self, host: &str, port: i32) {}
fn on_error(&self, err: &str) {}
@andreasonny83
andreasonny83 / README.md
Last active February 17, 2025 22:08
Readme template

npm version code style: prettier

Project Name

Write a project description

Prerequisites

This project requires NodeJS (version 8 or later) and NPM.

@OdinsPlasmaRifle
OdinsPlasmaRifle / arch_linux_installation.md
Last active April 11, 2025 21:21
LVM on LUKS Arch installation with systemd-boot
@CMCDragonkai
CMCDragonkai / memory_layout.md
Last active May 17, 2025 18:45
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore