Skip to content

Instantly share code, notes, and snippets.

View AlexandrHoroshih's full-sized avatar
🎯
Focusing

Alexander Khoroshikh AlexandrHoroshih

🎯
Focusing
View GitHub Profile
import { parse, type Literal } from 'acorn';
import { type Node } from 'estree-walker';
import { walk } from 'zimmerframe';
const ast = parse(output, {
ecmaVersion: 2022,
sourceType: 'module',
sourceFile: full_path,
});
@jacob-ebey
jacob-ebey / recursive-rsc-stream-inline.ts
Last active March 25, 2024 07:05
Inline RSC stream with a recursive async component that is streamed as part of the SSR renderToXYZ call.
import * as React from "react";
// @ts-ignore
import * as ReactDOM from "#react-dom-server-implementation";
// @ts-ignore
import * as ReactDOMClient from "#react-server-dom-client-implementation";
export async function fetch(
request: Request,
{
browserEntry,
@afflicted-cat
afflicted-cat / babel.config.js
Last active September 27, 2021 10:01
Nextjs ssr
module.exports = (api) => {
api.cache.using(() => process.env.NODE_ENV);
return {
presets: ["next/babel"],
plugins: [["effector/babel-plugin", { reactSsr: true }]],
};
};

Set up git editor

The main command is:

git config --global core.editor "path to your editor with params"

Set up an editor and check it by making a commit:

@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"