Skip to content

Instantly share code, notes, and snippets.

@axyiee
axyiee / data_structures.md
Created September 22, 2023 16:25
A comprehensible introduction to data structures. This article is unfinished.

Data Structures and Algorithms

Introduction

Understanding data structures and algorithms is a crucial role in solving complex problems efficiently. This is an overview of the most common structures and algorithms used on modern software.

Terminology

In computer science, these terms have specific meanings:

@axyiee
axyiee / linked_stack.cpp
Created September 22, 2023 16:24
A generic Stack data structure based upon linked lists.
#include <iostream>
#include <memory>
using namespace std;
template <typename T>
class LinkedStack
{
class Node
{
@axyiee
axyiee / pacman-on-windows.sh
Created April 19, 2023 21:09
Let's get Pacman package manager working on Windows!
#!/usr/bin/env bash
# Requirements:
# + Git Bash
# + 7-Zip
# + Modern7z
curl -L --output-dir ~/Downloads -O https://mirror.msys2.org/msys/x86_64/pacman-6.0.2-4-x86_64.pkg.tar.zst
curl -L --output-dir ~/Downloads -O https://mirror.msys2.org/msys/x86_64/pacman-mirrors-20221016-1-any.pkg.tar.zst
curl -L --output-dir ~/Downloads -O https://mirror.msys2.org/msys/x86_64/msys2-keyring-1~20230316-1-any.pkg.tar.zst
@axyiee
axyiee / index.css
Last active April 11, 2023 07:53
[Discord CSS Snippet] Better alignment between user info panel and channel text area
[class^="sidebar-"] [class^="panels-"] {
margin: 16px;
border-radius: 8px;
}
[class^="sidebar-"] [class^="panels-"] [class^="container-"] {
border-radius: 8px;
align-items: center;
justify-content: space-between;
}
@axyiee
axyiee / freebsd_controllers.md
Last active January 6, 2023 18:47
Controller support on FreeBSD 13

Gamepads on FreeBSD

This tutorial will guide you through the process of setting up game controllers on a FreeBSD system.

Prerequisites

Before you start, you will need to install the devel/sdl2 port with make config and enable HIDAPI and UDEV. Then, run make install to install it system-wide.

You may also need to install the following packages, depending on your specific controller and needs:

@axyiee
axyiee / photoshop.md
Last active December 30, 2022 16:04
Photoshop CC 2021 for FreeBSD

photoshop-freebsd

A comprehensive guide to install Adobe Photoshop 2020 (CC 2021) on FreeBSD.

Prequirements

  • FreeBSD 12.1 or newer
  • A GPU capable of running Vulkan 1.1 or newer
  • wine-proton >= 7.0 (both 64-bit and 32-bit)
  • curl, aria2, winetricks
@axyiee
axyiee / armcord.md
Last active February 5, 2024 15:38
Third-party Discord Client - ArmCord - on FreeBSD

discord-freebsd

A straightforward guide to how to get Discord running on FreeBSD. It is not the official client, but a third-party client that is not affiliated with Discord which supports even ARM.

Prerequisites

@axyiee
axyiee / crystalline.css
Last active December 28, 2022 13:56
Consistent design for DiscordStyles/Cystalline with bug fixes: favorites icon, friends list background
@import url('https://discordstyles.github.io/Crystalline/Crystalline.theme.css');
:root {
--app-image-dark: url("https://i.imgur.com/CaEhFo6.png");
--accent: 72 108 124;
}
/* bug fixes and consistency */
.theme-dark {
--background-primary: transparent;
@axyiee
axyiee / kernel_compilation_guide.md
Last active March 24, 2022 19:02
Gentoo Kernel Compilation Guide