Skip to content

Instantly share code, notes, and snippets.

View MisterDA's full-sized avatar
💾
furiously hacking

Antonin Décimo MisterDA

💾
furiously hacking
  • Paris, France
  • 02:51 (UTC -03:00)
View GitHub Profile
@MisterDA
MisterDA / .gitignore
Last active December 5, 2023 16:39
Test TLS callbacks on Windows
*.obj
*.lib
*.exe
*.dll
*.o
*.a
.\" Pipe this output to groff -m man -K utf8 -T utf8 | less -R
.\"
.mso an.tmac
.TH "OBUILDER" 1 "" "Obuilder" "Obuilder Manual"
.\" Disable hyphenation and ragged-right
.nh
.ad l
.SH NAME
.P
obuilder \N'45' a command\N'45'line interface for OBuilder
all:
groff -m man -T utf8 noop-escaped.man | less -R
@MisterDA
MisterDA / .gitignore
Last active February 16, 2022 08:33
OCaml win32unix: kill an arbitrary process?
_build/
_opam/
*.install
@MisterDA
MisterDA / ocaml-platform-contributions.md
Last active June 15, 2020 19:02
My contributions to the OCaml ecosystem.
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 / 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
@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 / 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) $<