Skip to content

Instantly share code, notes, and snippets.

View AndreOneti's full-sized avatar
🎯
Focusing

André Oneti AndreOneti

🎯
Focusing
View GitHub Profile
@AndreOneti
AndreOneti / python_named_pipe.py
Created January 18, 2023 12:23 — forked from komuw/python_named_pipe.py
python named pipe
import os
import errno
import time
"""
The linux pipe buffers are implemnted as circular buffers[1].
A consequence of the circular buffer is that when it is full and a subsequent write is performed:
(a) then it starts overwriting the oldest data[2].
(b) Alternatively, the routines that manage the buffer could prevent overwriting the data and return an error or raise an exception.
@AndreOneti
AndreOneti / index.js
Created August 12, 2021 14:44
nullstack
#! /usr/bin/env node
const { program } = require('commander');
const { version } = require('../package.json');
let lastTrace = '';
let compilingIndex = 1;
const buildModes = ['ssg', 'spa', 'ssr'];
const webpack = require('webpack');
const config = require('../webpack.config');