Skip to content

Instantly share code, notes, and snippets.

View 3y3's full-sized avatar

Yury Puzynya 3y3

  • Yandex
  • Saint-Petersburg, RU
View GitHub Profile
@3y3
3y3 / start.sh
Last active October 6, 2022 13:58
Fast HTTPS proxy setup
#!/bin/bash
source ../.env
if [[ -z "$HAPROXY_DOMAIN" ]]; then
echo "ENV HAPROXY_DOMAIN is not set"
exit 1
fi
if [[ -z "$HAPROXY_PROJECT" ]]; then
@3y3
3y3 / request.js
Created August 31, 2022 16:07
Request memoization
const {URLSearchParams} = require("url");
function sign(params, set) {
const acc = new URLSearchParams();
set = set || new Set();
Object.keys(params).sort().map((key) => {
const value = params[key];
@3y3
3y3 / README.md
Created August 25, 2022 10:50
Special linked list for micromark

micromark has slow postprocessing. This is caused by intensive splice operations over big array.

This linked list implements basic array api and wraps processing events.

Micromarc postprocess should be changed to

import { subtokenize } from 'micromark-util-subtokenize';
import {link, values} from '../../../linked-list.js'

export function postprocess(events) {