Skip to content

Instantly share code, notes, and snippets.

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,316,385,386,520,521,532,536,541,1855,1856,1886,1893,1899,1904,1905]},{"id":2,"callFrame":{"functionName":"","scriptId":"79","url":"node:internal/main/run_main_module","lineNumber":0,"columnNumber":0},"hitCount":0,"children":[3]},{"id":3,"callFrame":{"functionName":"executeUserEntryPoint","scriptId":"69","url":"node:internal/modules/run_main","lineNumber":133,"columnNumber":30},"hitCount":0,"children":[4]},{"id":4,"callFrame":{"functionName":"Module._load","scriptId":"63","url":"node:internal/modules/cjs/loader","lineNumber":947,"columnNumber":23},"hitCount":0,"children":[5]},{"id":5,"callFrame":{"functionName":"Module.load","scriptId":"63","url":"node:internal/modules/cjs/loader","lineNumber":1191,"columnNumber":32},"hitCount":0,"children":[6]},{"id":6,"callFrame":{"functionName":"Module._extensions..js","scriptId":"63","url":"node:internal/modules/cjs/loader","lineNumbe
This file has been truncated, but you can view the full file.
[{"traceId":"8e52d5bacce9261b","name":"hot-reloader","id":1,"timestamp":72812096627,"duration":34,"tags":{"version":"13.5.6"},"startTime":1717794015469},{"traceId":"8e52d5bacce9261b","parentId":1,"name":"start","id":2,"timestamp":72812097364,"duration":1,"tags":{},"startTime":1717794015469},{"traceId":"8e52d5bacce9261b","parentId":2,"name":"get-version-info","id":3,"timestamp":72812097479,"duration":726597,"tags":{},"startTime":1717794015469},{"traceId":"8e52d5bacce9261b","parentId":2,"name":"clean","id":4,"timestamp":72812824147,"duration":480,"tags":{},"startTime":1717794016196},{"traceId":"8e52d5bacce9261b","parentId":5,"name":"get-page-paths","id":6,"timestamp":72812826117,"duration":997,"tags":{},"startTime":1717794016198},{"traceId":"8e52d5bacce9261b","parentId":5,"name":"create-pages-mapping","id":7,"timestamp":72812827145,"duration":417,"tags":{},"startTime":1717794016199},{"traceId":"8e52d5bacce9261b","parentId":5,"name":"create-entrypoints","id":8,"timestamp":72812827581,"duration":2821,"tags":{},"s
@tomquirk
tomquirk / clear_stale_node_modules.sh
Created November 5, 2023 01:02
Clear stale node modules
#!/bin/bash
# Check if a directory has had a git commit in the last 30 days
hasRecentGitCommit() {
local dir="$1"
cd "$dir" || return 1
local last_commit_date
last_commit_date=$(git log -1 --format="%at")
local current_date
current_date=$(date +%s)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<!-- https://stripe.com/docs/legacy-checkout/flask -->
@tomquirk
tomquirk / gist:be2ff48c8af6f36acb3987aeb828e1ff
Created October 10, 2021 07:44
Change all commit email addresses
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then

Keybase proof

I hereby claim:

  • I am tomquirk on github.
  • I am tomquirk (https://keybase.io/tomquirk) on keybase.
  • I have a public key ASA-ljH2wVFjipriDV4teTXqptCIv1DwPa-97W5GrO4srQo

To claim this, I am signing this object:

@tomquirk
tomquirk / all-git-status
Created July 5, 2016 07:00
perform `git status` of all folders within current directory
#!/bin/bash
for i in $( ls );
do
printf "\n************\nPROJECT: $i\n\n"
DEV_ROOT=$PWD
cd $DEV_ROOT/$i
git status
cd $DEV_ROOT;
done
[Python Inverted]
definition-foreground = #7daffb
definition-background = #2e3436
builtin-background = #2e3436
break-foreground = #000000
stderr-background = #2e3436
string-background = #2e3436
console-background = #2e3436
keyword-foreground = #ffba77
stdout-background = #2e3436