This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################################################### | |
# A simple Makefile to synchronize OpenBSD repository locally. Helpful | |
# for air-gapped computers. | |
# | |
# $ make help | |
# $ make all | |
# | |
# see: https://www.openbsd.org/ftp.html#rsync | |
###################################################################### | |
VERSION ?= 7.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# required packages | |
doas pkg_add ocaml opam | |
# setup opam and mirage | |
opam init | |
eval $(opam env) | |
# pins to fix for OpenBSD Current (mincore fixes and noretpoline) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
###################################################################### | |
# socat daemon wrapper. This script use daemon(8) command and | |
# transform a standard socat process in daemon. This script stop | |
# the service by stopping daemon supervisor instead of socat process. | |
# | |
# PROVIDE: socatd | |
# REQUIRE: network | |
# KEYWORD: socat daemon | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%=================================================================== | |
%%% @doc Editor2 State Machine simulate a file with different action | |
%%% on it (append, delete, read). | |
%%% @end | |
%%% @todo add something to abstract state data-structure. | |
%%% @todo add dynamic callback functions (editor_test currently). | |
%%% @todo add replace function support. | |
%%% @todo add map function support. | |
%%%=================================================================== | |
-module(editor2). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(irc_connection). | |
-compile(export_all). | |
-behaviour(gen_statem). | |
%%==================================================================== | |
%% | |
%%==================================================================== | |
start() -> | |
start([]). | |
start(Args) -> | |
gen_statem:start(?MODULE, Args, []). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(request). | |
-behaviour(gen_server). | |
%% API exports | |
-export([]). | |
-compile(export_all). | |
-record(state, { type, struct, name, options }). | |
start() -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%------------------------------------------------------------------- | |
%%% @author Mathieu Kerjouan | |
%%% @copyright (c) 2018, Mathieu Kerjouan | |
%%% @doc This is a quick and dirty zfs dmu replay record implementation | |
%%% in Erlang. This is only a PoC and should not be used in | |
%%% production. This code is an implementation of zstreamdump | |
%%% from OpenZFS. | |
%%% @end | |
%%%------------------------------------------------------------------- | |
-module(dmu_replay_record2). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import System.Posix | |
import System.Posix.IO | |
import System.Posix.Signals | |
test childRead fatherWrite = do | |
(r, _) <- fdRead childRead 10 | |
putStrLn r | |
childHandler = do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "Device" | |
Identifier "Device0" | |
Driver "intel" | |
Option "DRI" "3" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/uio.h> | |
#include <sys/param.h> | |
#include <stdlib.h> | |
#include <string.h> | |
struct tuple { | |
struct iovec key; | |
struct iovec value; |
NewerOlder