Skip to content

Instantly share code, notes, and snippets.

View kangasta's full-sized avatar

Toni Kangas kangasta

View GitHub Profile
@kangasta
kangasta / Dockerfile
Last active March 31, 2021 20:33
Multiple vhostuser ports example with testpmd
FROM ubuntu:bionic
RUN apt-get update && apt-get install -y dpdk;
ENTRYPOINT ["bash"]
@kangasta
kangasta / fizzbuzz.c
Last active March 26, 2019 20:15
FizzBuzz
#include <stdio.h>
#include <stdlib.h>
#define ATOI_ARGV(a) (((a) < argc) ? atoi(argv[(a)]) : (0))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define USAGE "Usage: \"fizzbuzz a [b=0]\", where a and b are integers defining range.\n"
int main(int argc, char** argv) {
for(