Skip to content

Instantly share code, notes, and snippets.

View afro-coder's full-sized avatar

Leon afro-coder

View GitHub Profile
@afro-coder
afro-coder / podman.md
Created August 1, 2025 02:10
Podman overview with pods

Podman Overview commands

podman ps

CONTAINER ID  IMAGE                                          COMMAND               CREATED      STATUS                PORTS                                               NAMES
3ab2fc4893d3  localhost/podman-pause:4.9.3-0                                       3 weeks ago  Up 3 weeks            127.0.0.1:8000->8000/tcp, 127.0.0.1:8443->8443/tcp  e93a7d115be6-infra
c3930453f0db  docker.io/guacamole/guacd:latest               /bin/sh -c /opt/g...  3 weeks ago  Up 3 weeks (healthy)  127.0.0.1:8000->8000/tcp, 127.0.0.1:8443->8443/tcp  guacd
bb4a6589771b  docker.io/guacamole/guacamole:latest           /opt/guacamole/bi...  3 weeks ago  Up 3 weeks            127.0.0.1:8000->8000/tcp, 127.0.0.1:8443->8443/tcp  guacamole
@afro-coder
afro-coder / values.yaml
Created January 27, 2025 09:30
Ratelimit Decoupling in Gloo Edge
grafana:
defaultInstallationEnabled: false
prometheus:
enabled: false
gloo-fed:
glooFedApiserver:
enable: false
enabled: false
redis:
deployment:
@afro-coder
afro-coder / readme.md
Last active July 2, 2024 14:45
Build Ansible on Risc-v

Install Ansible in Linux using Pip

# Python 3.12.4
python -m venv venv
source venv/bin/activate

# Install rustup
## Ubuntu:  sudo apt install -y rustup
##  Archlinux: sudo pacman -S rustup
@afro-coder
afro-coder / bookinfo.graphql
Last active March 7, 2024 07:08
Microcks Bookinfo
# microcksId: Bookinfo Graph API: 1.0
type Query {
"""Description of a book in HTML"""
productsForHome: [Product]
}
"""Each book has a product entry"""
type Product {
"""Unique identifier for books"""
id: String
"""The book title"""
openapi: 3.0.3
info:
title: Catstronauts REST API
description: REST API for Catstronauts to retrieve data for tracks, authors and modules.
version: 1.0.0
servers:
- url: /
tags:
- name: Tracks
description: A track is a collection of modules around a topic for catstronauts to learn about.
@afro-coder
afro-coder / helm-values.yaml
Last active December 7, 2022 04:43
Aerospike values
gloo:
gatewayProxies:
gatewayProxy:
gatewaySettings:
options:
accessLoggingService:
accessLog:
- fileSink:
path: /dev/stdout
stringFormat: >
@afro-coder
afro-coder / commands.md
Created June 1, 2022 08:31
Journald Commands

Systemd

Enabling a service and starting it

systemctl enable --now httpd
systemctl enable httpd

Making the journal persistent

@afro-coder
afro-coder / chal-02.md
Created May 31, 2022 11:21
Linux File manipulation

Learning File Manipulation

New Command: cut use man to figure out how to use cut

Using the file shared on slack

  • Print the first hundred lines
  • Print the first line
  • Print the last line of the file
  • Total lines inside the file
@afro-coder
afro-coder / chal-01.md
Created May 31, 2022 09:40
Linux Basic Administration challenge

Boot up the linux virtual machine

  • Install apache (Use package manager to figure this out)
    • Start the apache service
    • Create a file that will replace the index file in your apache server
    • Check the port of the apache server
    • Check how many processes are being run by apache
  • Install nginx (Use package manager to figure this out)
    • Start the nginx systemd service
  • Test the service
@afro-coder
afro-coder / commands.md
Last active June 2, 2022 09:54
Linux commands