Skip to content

Instantly share code, notes, and snippets.

import { decodeBase64 } from "https://deno.land/std@0.212.0/encoding/base64.ts";
const CLIENT_ID = crypto.randomUUID();
const [{ port, target }] = await Deno.resolveDns(
"_v2-origintunneld._tcp.argotunnel.com",
"SRV",
);
const [address] = await Deno.resolveDns(target, "A");
'use strict';
const net = require('node:net');
const tls = require('node:tls');
const fs = require('node:fs');
const http2 = require('node:http2');
const dns = require('node:dns/promises');
const socketpair = require('unix-socketpair');
const capnp = require('../node-capnp');
use std::{
future::Future,
marker::PhantomData,
pin::Pin,
task::{Context, Poll},
};
use tower::{Layer, Service};
pub struct StateLayer<OnRequest, OnResponse, State, Request, Response> {
on_request: OnRequest,
̶̨̮̹͚̘̦̣̫͔͈̣͖̱̤̗͖̽͑̓̓͆͆͒͋̚͜͠ͅ‎̸̢̨̨̨̨̪̝̳̥͔̪̯̞͉̟̯̘̪̙̱̲̦̬̦̺̙̫͓͕̫͚͇̃̿͗̔͜͝͝ͅͅ‎̴̝̰̲̊̽̌̌̒̈̂̅̀̂͛̊́̒̓͊̂͗͊́͐̈͗̉̍͑͛̕͝͝͝ͅ‎̶̨̢̧̧̡̞̥̫̹̘̫̥̙̣͕͕̝̳̖͖͉͚̲̪̹̹̩̙̐͛̀̇̚͜ͅ‎̸̡̧̢̢̨̢̧̧̡̛͔̙̠̲͚̩̪͎̲̳̳̫̖̰̰͍̤̦̠̹̺̣̟̜̯̞͚̣̙̰̤̂͆̋̈́͑̐̄̍́̆̅̄͒̿͌̏̑̂̏́̚̕͜͜͝ͅͅͅ‎̷̛̛̘̈́͒̉͆̐̔͊̋̈́͛̽̅͌̈́̈́̒̄̍̅͒̅̇͂͋͐̇͗̐̏̓͑͌̌̒̊̕͘̚̕̕͘͝͝͝‎̸̢̢̡͈̞̬̫͈̲̜̥̳̠͍̹͓͚̳͍͕͖͍͍͎̼͓̻͕̪̘̈̍̔͂̃̔͑́͆́̃̐̓̒̔̇̓̀̌̂͐͑͌̎̓̓̂̒̾́̇͊̍͆̒̾͊͑̅̕̚͘̕͝‎̶̨̮̹͚̘̦̣̫͔͈̣͖̱̤̗͖̽͑̓̓͆͆͒͋̚͜͠ͅ‎̸̢̨̨̨̨̪̝̳̥͔̪̯̞͉̟̯̘̪̙̱̲̦̬̦̺̙̫͓͕̫͚͇̃̿͗̔͜͝͝ͅͅ‎̴̝̰̲̊̽̌̌̒̈̂̅̀̂͛̊́̒̓͊̂͗͊́͐̈͗̉̍͑͛̕͝͝͝ͅ‎̶̨̢̧̧̡̞̥̫̹̘̫̥̙̣͕͕̝̳̖͖͉͚̲̪̹̹̩̙̐͛̀̇̚͜ͅ‎̸̡̧̢̢̨̢̧̧̡̛͔̙̠̲͚̩̪͎̲̳̳̫̖̰̰͍̤̦̠̹̺̣̟̜̯̞͚̣̙̰̤̂͆̋̈́͑̐̄̍́̆̅̄͒̿͌̏̑̂̏́̚̕͜͜͝ͅͅͅ‎̷̛̛̘̈́͒̉͆̐̔͊̋̈́͛̽̅͌̈́̈́̒̄̍̅͒̅̇͂͋͐̇͗̐̏̓͑͌̌̒̊̕͘̚̕̕͘͝͝͝‎̸̢̢̡͈̞̬̫͈̲̜̥̳̠͍̹͓͚̳͍͕͖͍͍͎̼͓̻͕̪̘̈̍̔͂̃̔͑́͆́̃̐̓̒̔̇̓̀̌̂͐͑͌̎̓̓̂̒̾́̇͊̍͆̒̾͊͑̅̕̚͘̕͝‎̶̨̮̹͚̘̦̣̫͔͈̣͖̱̤̗͖̽͑̓̓͆͆͒͋̚͜͠ͅ‎̸̢̨̨̨̨̪̝̳̥͔̪̯̞͉̟̯̘̪̙̱̲̦̬̦̺̙̫͓͕̫͚͇̃̿͗̔͜͝͝ͅͅ‎̴̝̰̲̊̽̌̌̒̈̂̅̀̂͛̊́̒̓͊̂͗͊́͐̈͗̉̍͑͛̕͝͝͝ͅ‎̶̨̢̧̧̡̞̥̫̹̘̫̥̙̣͕͕̝̳̖͖͉͚̲̪̹̹̩̙̐͛̀̇̚͜ͅ‎̸̡̧̢̢̨̢̧̧̡̛͔̙̠̲͚̩̪͎̲̳̳̫̖̰̰͍̤̦̠̹̺̣̟̜̯̞͚̣̙̰̤̂͆̋̈́͑̐̄̍́̆̅̄͒̿͌̏̑̂̏́̚̕͜͜͝ͅͅͅ‎̷̛̛̘̈́͒̉͆̐̔͊̋̈́͛̽̅͌̈́̈́̒̄̍̅͒̅̇͂͋͐̇͗̐̏̓͑͌̌̒̊̕͘̚̕̕͘͝͝͝‎̸̢̢̡͈̞̬̫͈̲̜̥̳̠͍̹͓͚̳͍͕͖͍͍͎̼͓̈̍̔͂̃̔͑́͆́̃̐̓̒̔̇̓̀̌̂͐͑͌̎̓̓̂̒̾́̇͊̍͆̒̾͊͑̅̕̚͘̕͝
'use strict';
const { cborToLexRecord, readCar } = require('@atproto/repo');
const { Subscription } = require('@atproto/xrpc-server');
const SERVICE = 'bsky.network';
const subscription = new Subscription({
service: `wss://${SERVICE}`,
method: 'com.atproto.sync.subscribeRepos',
# Copyright 2010-2017 Intel Corporation.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License, version 2,
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.9.14-arch1 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.2.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=100200
CONFIG_LD_VERSION=235010000
CONFIG_CLANG_VERSION=0
CONFIG_CC_CAN_LINK=y
/*
* QEMU Bochs-style debug console ("port E9") emulation
*
* Copyright (c) 2003-2004 Fabrice Bellard
* Copyright (c) 2008 Citrix Systems, Inc.
* Copyright (c) Intel Corporation; author: H. Peter Anvin
*
* 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
use std::io::Write;
fn make_code(ptr: *mut u8) -> usize {
use cranelift::prelude::*;
let mut flag_builder = settings::builder();
flag_builder.set("is_pic", "true").unwrap();
flag_builder.set("opt_level", "speed_and_size").unwrap();
let flags = settings::Flags::new(flag_builder);
:erlang.register(:control, self())
nodes = [
:"node@uhoh",
:"node@VAULT",
:"node@xone",
:"node@blade",
]
code = Macro.to_string(quote do