Skip to content

Instantly share code, notes, and snippets.

View mariomac's full-sized avatar

Mario Macias mariomac

View GitHub Profile
@theNestruo
theNestruo / cartridge.asm
Created September 7, 2021 07:40
Simplified MSXlib cartridge header, entry point and initialization
; =============================================================================
; MSX cartridge (ROM) header, entry point and initialization
; =============================================================================
IF (CFG_INIT_ROM_SIZE < 32)
org $4000, $4000 + (CFG_INIT_ROM_SIZE * $0400) - 1
ELSE
org $4000, $bfff
ENDIF ; IF (CFG_INIT_ROM_SIZE < 32)
@williamcaban
williamcaban / NetFlow or SFlow with OpenShift 4.md
Created May 2, 2020 15:24
Simple procedure to enable NetFlow or SFlow on OpenShift 4

Netflow or sFlow on OpenShift 4 w/OVN Kubernetes

  • Identify the ovs-node of the Node hosting the Pods to monitor

    # oc get pods --selector="app=ovs-node" -o wide
    NAME             READY   STATUS    RESTARTS   AGE   IP              NODE       NOMINATED NODE   READINESS GATES
    ovs-node-4hldj   1/1     Running   0          47h   198.18.100.16   worker-1   <none>           <none>
    

ovs-node-bd9ln 1/1 Running 0 47h 198.18.100.12 master-1

@Konamiman
Konamiman / SDCC_Interfacing_with_assembler_code.md
Last active February 1, 2024 03:22
[SDCC] Interfacing with Z80 assembler code

SDCC - Interfacing with Z80 assembler code

The basics

When writing code to be compiled with SDCC targetting Z80, assembler code fragments can be inserted in the C functions by enclosing them between the __asm and __endasm; tags:

void DoNotDisturb()
{
  __asm

di

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 8, 2024 07:49
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname