Skip to content

Instantly share code, notes, and snippets.

#ifndef DECODER_HPP_
#define DECODER_HPP_
#include "streambuf.hpp"
#include "client_messages.hpp"
class Decoder {
public:
Decoder(size_t capacity)
@reiver-dev
reiver-dev / fira_code_patch.py
Created February 5, 2018 03:07
Move ligatures for Fira Code font to private unicode area at U+e100
import os
import sys
import argparse
from glob import glob
from itertools import chain
import fontforge
ADDITIONAL_LIGATURES = [
'x.multiply',
@reiver-dev
reiver-dev / executor.py
Last active April 23, 2019 00:26
Running processes and passing stdio fds over unix sockets, might be usefult for sidecar containers
import os
import sys
from array import array
from socket import (socket, AF_UNIX, SOCK_SEQPACKET,
CMSG_LEN, SOL_SOCKET, SCM_RIGHTS)
from errno import EADDRINUSE
from asyncio import (
Future, Task, AbstractEventLoop,
get_running_loop as _get_running_loop, set_event_loop,