Skip to content

Instantly share code, notes, and snippets.

View it-ankka's full-sized avatar
:shipit:
👨‍💻

IT-Ankka it-ankka

:shipit:
👨‍💻
View GitHub Profile
@Alevsk
Alevsk / install-docker.yaml
Last active May 18, 2025 11:16
Ansible playbook to install docker
- hosts: "{{ HOSTS }}"
name: Install Docker
become: yes
vars:
docker_group: docker
tasks:
- name: Install apt-transport-https
ansible.builtin.apt:
name:
- apt-transport-https
@mbforbes
mbforbes / minimal-ecs.ts
Created September 5, 2021 06:50
A minimal but complete Entity Component System (ECS) implementation in 99 lines.
type Entity = number
abstract class Component { }
abstract class System {
public abstract componentsRequired: Set<Function>
public abstract update(entities: Set<Entity>): void
public ecs: ECS
}
type ComponentClass<T extends Component> = new (...args: any[]) => T
class ComponentContainer {
private map = new Map<Function, Component>();
@matthewjberger
matthewjberger / instructions.md
Last active May 16, 2025 08:44
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache