Skip to content

Instantly share code, notes, and snippets.

View MisterDA's full-sized avatar
💾
furiously hacking

Antonin Décimo MisterDA

💾
furiously hacking
  • TrustInSoft
  • Paris, France
  • 05:29 (UTC +02:00)
View GitHub Profile
@MisterDA
MisterDA / QCM_2.md
Last active May 10, 2017 17:21
Programmation Réseaux - Contrôle Continu - 2017
  1. localhost. C'est l'ordinateur qui se réfère à lui-même, en IPv4.
  2. 255 99. octets de poids fort d'abord, en base 255
  3. 256
#include <stdio.h>
#include <arpa/inet.h>

int main() {
  uint16_t i = 1;
  uint16_t j = htons(i);
@MisterDA
MisterDA / LaTeX Template
Last active October 14, 2019 14:42
Latex template
LaTeX template
@MisterDA
MisterDA / 6.0pre5.patch
Created November 28, 2019 12:50
Patch for Arch Linux omnetpp PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
index 99659c2..77499a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Bruno Silva <brunofernandes at ua dot pt>
pkgname='omnetpp-qt'
-pkgver=6.0pre4
-_pkgver=6-0pre4
MPRI 2.33.1 — Consensus in multi-agent systems
@MisterDA
MisterDA / Makefile
Last active December 18, 2019 16:53
OBJDIR := objdir
SRCS := foo.c bar.c baz.c
OBJS := $(SRCS:%.c=$(OBJDIR)/%.o)
CPPFLAGS += -MMD -MP
all: $(OBJDIR) $(OBJS)
$(CC) $(LDFLAGS) -o main $(OBJS) $(LDLIBS)
$(OBJDIR)/%.o: %.c
$(COMPILE.c) $(OUTPUT_OPTION) $<
@MisterDA
MisterDA / array.c
Last active January 3, 2020 12:14
A type-safe, growable array for C, generated with macros.
/*
MIT License
Copyright (c) 2019 Antonin Décimo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@MisterDA
MisterDA / config
Created March 10, 2020 14:30
Sway configuration
# Default config for sway
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
# Home row direction keys, like vim
set $left h
set $down j
set $up k
From 07fd30f6cdbfb229519e41de48cbda50f8f22fd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= <antonin.decimo@gmail.com>
Date: Tue, 31 Mar 2020 00:12:07 +0200
Subject: [PATCH] Set executable version to pkgver
---
PKGBUILD | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
@MisterDA
MisterDA / ocaml-platform-contributions.md
Last active June 15, 2020 19:02
My contributions to the OCaml ecosystem.