Skip to content

Instantly share code, notes, and snippets.

View blackhaj's full-sized avatar

Henry Black blackhaj

View GitHub Profile
const { patchWebpackConfig } = require('next-global-css');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const { configureRuntimeEnv } = require('next-runtime-env/build/configure');
const { patchSass } = require('./config/patch-sass');
const { patchSvgs } = require('./config/patch-svgs');
const { patchVideos } = require('./config/patch-videos');
const { patchAliases } = require('./config/patch-aliases');
const { patchRiv } = require('./config/patch-riv');
This file has been truncated, but you can view the full file.
[{"name":"hot-reloader","duration":22,"timestamp":1399426632964,"id":3,"tags":{"version":"14.2.11","isTurbopack":false},"startTime":1729625843892,"traceId":"a66c714970f82d58"},{"name":"start","duration":0,"timestamp":1399426633338,"id":4,"parentId":3,"tags":{},"startTime":1729625843893,"traceId":"a66c714970f82d58"},{"name":"get-version-info","duration":682787,"timestamp":1399426633421,"id":5,"parentId":4,"tags":{},"startTime":1729625843893,"traceId":"a66c714970f82d58"},{"name":"clean","duration":402,"timestamp":1399427316307,"id":6,"parentId":4,"tags":{},"startTime":1729625844576,"traceId":"a66c714970f82d58"},{"name":"get-page-paths","duration":463,"timestamp":1399427317612,"id":8,"parentId":7,"tags":{},"startTime":1729625844577,"traceId":"a66c714970f82d58"},{"name":"create-pages-mapping","duration":256,"timestamp":1399427318091,"id":9,"parentId":7,"tags":{},"startTime":1729625844577,"traceId":"a66c714970f82d58"},{"name":"create-entrypoints","duration":1272,"timestamp":1399427318357,"id":10,"parentId":7,"tags
This file has been truncated, but you can view the full file.
[{"name":"hot-reloader","duration":22,"timestamp":1399426632964,"id":3,"tags":{"version":"14.2.11","isTurbopack":false},"startTime":1729625843892,"traceId":"a66c714970f82d58"},{"name":"start","duration":0,"timestamp":1399426633338,"id":4,"parentId":3,"tags":{},"startTime":1729625843893,"traceId":"a66c714970f82d58"},{"name":"get-version-info","duration":682787,"timestamp":1399426633421,"id":5,"parentId":4,"tags":{},"startTime":1729625843893,"traceId":"a66c714970f82d58"},{"name":"clean","duration":402,"timestamp":1399427316307,"id":6,"parentId":4,"tags":{},"startTime":1729625844576,"traceId":"a66c714970f82d58"},{"name":"get-page-paths","duration":463,"timestamp":1399427317612,"id":8,"parentId":7,"tags":{},"startTime":1729625844577,"traceId":"a66c714970f82d58"},{"name":"create-pages-mapping","duration":256,"timestamp":1399427318091,"id":9,"parentId":7,"tags":{},"startTime":1729625844577,"traceId":"a66c714970f82d58"},{"name":"create-entrypoints","duration":1272,"timestamp":1399427318357,"id":10,"parentId":7,"tags
This file has been truncated, but you can view the full file.
{"nodes":[{"id":1,"callFrame":{"functionName":"(root)","scriptId":"0","url":"","lineNumber":-1,"columnNumber":-1},"hitCount":0,"children":[2,60,273,274,416,547,548,584,590]},{"id":2,"callFrame":{"functionName":"run","scriptId":"142","url":"node:internal/modules/esm/module_job","lineNumber":227,"columnNumber":11},"hitCount":0,"children":[3]},{"id":3,"callFrame":{"functionName":"evaluate","scriptId":"0","url":"","lineNumber":-1,"columnNumber":-1},"hitCount":0,"children":[4]},{"id":4,"callFrame":{"functionName":"","scriptId":"141","url":"node:internal/modules/esm/translators","lineNumber":281,"columnNumber":66},"hitCount":0,"children":[5]},{"id":5,"callFrame":{"functionName":"cjsLoader","scriptId":"141","url":"node:internal/modules/esm/translators","lineNumber":342,"columnNumber":37},"hitCount":0,"children":[6]},{"id":6,"callFrame":{"functionName":"Module._load","scriptId":"65","url":"node:internal/modules/cjs/loader","lineNumber":1015,"columnNumber":23},"hitCount":0,"children":[7]},{"id":7,"callFrame":{"functio
@blackhaj
blackhaj / getPeopleYouFollow.js
Created April 21, 2023 11:40
Gets all the people you follow on twitter
// Go to the list of people you follow e.g. https://twitter.com/HAJBlack/following
// (don't scroll, stay at the top of the page)
// Open the console and paste the code below
// copy the logged object and store it somewhere
const scrollToEndOfPage = () => {
window.scrollTo(0, document.body.scrollHeight);
};
const delay = (ms) => new Promise((res) => setTimeout(res, ms));
import '@johnlindquist/kit';
const prettier = await npm('prettier');
// Name: json-formatter
// Author: Henry Black
// Twitter: @hajblack
const unformattedJson = await paste();
import '@johnlindquist/kit';
const prettier = await npm('prettier');
// Name: json-formatter
// Author: Henry Black
// Twitter: @hajblack
const unformattedJson = await paste();