Skip to content

Instantly share code, notes, and snippets.

View eps1lon's full-sized avatar
:atom:
mt?!" “ .I.r '2 f

Sebastian Silbermann eps1lon

:atom:
mt?!" “ .I.r '2 f
View GitHub Profile
@eps1lon
eps1lon / README.md
Created October 25, 2021 11:46
Crawl website for 404s

website-link-graph

$ yarn start https://testing-library.com/
link graph:  Map() {
  '/users' => [
    '/',
    '/docs/',
    '/docs/recipes',
    '/help',
@eps1lon
eps1lon / gh-pull-request-stats.js
Created August 26, 2021 14:39
GitHub Pull Requests stats
#!/usr/bin/env node
import * as Octokit from "@octokit/graphql";
import * as process from "process";
const [username] = process.argv.slice(2);
const githubToken = process.env.GITHUB_TOKEN;
const graphql = Octokit.graphql.defaults({
headers: { authorization: `token ${githubToken}` },
});
@eps1lon
eps1lon / README.md
Last active June 29, 2021 12:53
React 18
0 new icons
0 new variants
@eps1lon
eps1lon / README.md
Last active May 11, 2021 08:44
ensure component classes exist

Requires node 16. Don't forgot to run yarn prettier after the script finishes.

Examples

$ node scripts/migrateComponentClasses.mjs
$ node scripts/migrateComponentClasses.mjs --dry --grep "AccordionSummary"
@eps1lon
eps1lon / ui.tex
Created May 5, 2021 13:31
teared UI
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\title{teared ui}
\author{Sebastian Silbermann}
\date{May 2021}
\begin{document}
@eps1lon
eps1lon / README.md
Created April 13, 2021 08:56
catch implicit mutable arrays

no-mutable-arrays

Prevent usage of implicit mutable arrays. As input parameters we almost always want readonly arrays.

This has a probably too many false positives in implementation code.

@eps1lon
eps1lon / README.md
Created March 22, 2021 11:04
new JSX transform
@eps1lon
eps1lon / docs-build-log.md
Last active March 16, 2021 08:43
webpack 5

diff: https://www.diffchecker.com/1nsuLrHh

webpack 4
yarn run v1.22.10
$ yarn workspace docs build
$ cross-env NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 next build --profile
info  - Loaded env from /home/eps1lon/Development/projects/mui/fork/docs/.env