Skip to content

Commit b31cb43

Browse files
committed
personal updates. chromium dev stuff etc.
1 parent 5c2d82b commit b31cb43

File tree

9 files changed

+71
-58
lines changed

9 files changed

+71
-58
lines changed

.aliases

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ alias hosts='sudo $EDITOR /etc/hosts' # yes I occasionally 127.0.0.1 twitter.c
2222
###
2323
# time to upgrade `ls`. use eza instead of dealing with coreutils, LS_COLORS blah blah
2424
alias ls='eza --classify=auto --color --group-directories-first --sort=extension -A'
25-
alias la='eza --classify=auto --color --group-directories-first --sort=extension -a --octal-permissions --no-permissions'
25+
alias la='eza --classify=auto --color --group-directories-first --sort=extension -a -l --octal-permissions --no-permissions'
2626
# ls options: A = include hidden (but not . or ..), F = put `/` after folders, h = byte unit suffixes
2727

2828

.config/mpv/mpv.conf

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# https://github.com/mpv-player/mpv/blob/master/etc/mpv.conf
3+
4+
5+
# Do not close the window on exit.
6+
keep-open=yes
7+
8+
9+
# launch within the available screen space.
10+
autofit-larger=100%x100%

.gitconfig

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
# What's the ancestor commit this branch shares with (the parent branch, or, more likely...) main?
3838
# diffbase = !"git config --get branch.$(command git symbolic-ref --short HEAD).base || git merge-base origin/$(git mainormaster) HEAD"
3939
diffbase = !"git merge-base origin/$(git mainormaster) HEAD"
40-
# Is it a `main` or a `master` repo?
41-
mainormaster = !"git branch --format '%(refname:short)' --sort=-committerdate --list master main | head -n1"
40+
# Is it a `main` or a `master` repo? Will default to main if neither is found.
41+
mainormaster = !"(git branch --format '%(refname:short)' --sort=-committerdate --list master main; echo main) | head -n1 || echo main"
4242

4343
# fyi to change a git checkout from master to main.. (gh's suggested commands:)
4444
# git branch -m master main; git fetch origin; git branch -u origin/main main; git remote set-head origin -a
@@ -178,3 +178,5 @@
178178
version = 2
179179

180180

181+
[advice]
182+
detachedHead = false

.gitignore

+1-38
Original file line numberDiff line numberDiff line change
@@ -1,38 +1 @@
1-
*-chrome-mac.zip
2-
3-
# I like having a personal readme file to keep notes.
4-
PAUL.readme.md
5-
6-
# working files
7-
.vim/viminfo
8-
.vim/swaps/*
9-
.vim/undo
10-
11-
# git credential file
12-
.gitconfig.local
13-
14-
15-
# no thx
16-
node_modules
17-
18-
# Folder view configuration files
19-
.DS_Store
20-
Desktop.ini
21-
22-
# Thumbnail cache files
23-
._*
24-
Thumbs.db
25-
26-
# Files that might appear on external disks
27-
.Spotlight-V100
28-
.Trashes
29-
30-
# Compiled Python files
31-
*.pyc
32-
33-
# fish shell
34-
fishd.*
35-
fish/config.fish.backup
36-
.config/fish/fish_history
37-
fish/fish_history
38-
fish/fish_variables
1+
# the symlink for this broke so.. whatever

bin/pull

+5-5
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ if [ "$GIT_FRIENDLY_NO_BUNDLE" != "true" ]; then
6565
fi
6666

6767
# Skip installs if devtools because weird node_modules situation
68-
repoUrl=$(git config --get remote.origin.url)
69-
if grep -q chromium.googlesource.com <<<$repoUrl; then
70-
gclient sync --delete_unversioned_trees # chromium deps instead
71-
exit 0
72-
fi
68+
# repoUrl=$(git config --get remote.origin.url)
69+
# if grep -q chromium.googlesource.com <<<$repoUrl; then
70+
# gclient sync --delete_unversioned_trees # chromium deps instead
71+
# exit 0
72+
# fi
7373

7474

7575
echo

bin/start-devtools-servers.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
#!/usr/bin/env bash
3+
4+
set -euo pipefail
5+
6+
echo "hi"
7+
# port 9435
8+
/Users/paulirish/bin/statikk --cors ~/Downloads/traces &
9+
10+
# --port=9308
11+
statikk --cors --port=9308 $HOME/chromium-devtools/devtools-frontend/front_end/panels/timeline/fixtures/traces &
12+
13+
# port 10090
14+
cd $HOME/chromium-devtools/devtools-frontend && PORT=10090 /Users/paulirish/bin/node scripts/component_server/server.js
15+
16+
# but DONT background this last one.. so you can ctrl-c the script in total ^
17+
18+
19+
# fyi these have been hardcoed into
20+
# ~/Library/Workflows/Applications/MyLoginStuff-streamdeck-displayswap-etc.automator.app
21+
# so any changes here wont affect that one.

chromium.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ function dtb () {
4343
# # Avoid the startup dialog for 'Chromium wants to use your confidential information stored in "Chromium Safe Storage" in your keychain'
4444
# # Avoid the startup dialog for 'Do you want the application “Chromium.app” to accept incoming network connections?'
4545
# # Avoid weird interaction between this experiment and CDP targets
46-
clutch_chrome_flags="--use-mock-keychain -disable-features=MediaRouter,ProcessPerSiteUpToMainFrameThreshold"
46+
# # Hides blue bubble "user education" nudges
47+
# # Hides Chrome for Testing bar, among others.
48+
clutch_chrome_flags="--use-mock-keychain --disable-features=MediaRouter,ProcessPerSiteUpToMainFrameThreshold --ash-no-nudges --disable-infobars"
4749

4850

4951
# you can also add any extra args: `cr --user-data-dir=/tmp/lol123"

fish/aliases.fish

+2-6
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ abbr mtr "sudo mtr"
8888

8989

9090
# is it a `main` or a `master` repo?
91-
alias gitmainormaster="git branch --format '%(refname:short)' --sort=-committerdate --list master main | head -n1"
91+
alias gitmainormaster="printf '%s\n' (git branch --format '%(refname:short)' --sort=-committerdate --list master main) main | head -n 1"
9292
alias main="git checkout (gitmainormaster)"
9393
alias master="main"
9494

@@ -175,13 +175,9 @@ alias reportunit 'yarn jest (find report -iname "*-test.js" | grep -v axe)'
175175
# pretty sure watchexec has just won my heart after years of using `entr`
176176
alias reportwatch 'watchexec "node build/build-report-components.js && node build/build-report.js --psi && node build/build-sample-reports.js && echo \$(date) && yarn eslint --fix report/renderer/components.js" && bash core/scripts/copy-util-commonjs.sh'
177177

178-
# dt. rpp
179-
alias rppunit 'npm test -- front_end/panels/timeline/ front_end/models/trace front_end/ui/legacy/components/perf_ui'
180-
alias rppinter 'npm run test -- test/e2e/performance/'
181-
alias rppscreen 'third_party/node/node.py --output scripts/test/run_test_suite.js --config test/interactions/test-runner-config.json --mocha-fgrep "[screenshot]" --test-file-pattern="*/performance/**"'
182-
183178
abbr xpraclient "xpra attach --video-scaling=off --desktop-scaling=off --dpi=96 --ssh=/usr/bin/ssh 'ssh://glurp/:110'"
184179

180+
185181
function delbranch
186182
git branch -D "$argv" && git push paul ":$argv"
187183
end

fish/chromium.fish

+24-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function deps --description "run gclient sync without hooks"
22
# --reset drops local changes. often great, but if making changes inside v8, you don't want to use --reset
33
# also reset seems to reset branch position in the devtools-internal repo??? weird.
4-
gclient sync --delete_unversioned_trees --jobs=70 --verbose --nohooks
4+
gclient sync --delete_unversioned_trees --jobs=70 --nohooks
55
end
66

77
function depsbg --description "run gclient sync in the background"
@@ -10,7 +10,7 @@ end
1010

1111

1212
function hooks --description "run gclient runhooks"
13-
gclient runhooks --verbose
13+
gclient runhooks
1414
end
1515

1616
function depshooks
@@ -74,7 +74,8 @@ end
7474
# # Avoid the startup dialog for 'Do you want the application “Chromium.app” to accept incoming network connections?'
7575
# # Avoid weird interaction between this experiment and CDP targets
7676
# # Hides blue bubble "user education" nudges
77-
set clutch_chrome_flags "--use-mock-keychain --disable-features=MediaRouter,ProcessPerSiteUpToMainFrameThreshold --ash-no-nudges"
77+
# # Hides Chrome for Testing bar, among others.
78+
set clutch_chrome_flags "--use-mock-keychain --disable-features=MediaRouter,ProcessPerSiteUpToMainFrameThreshold --ash-no-nudges --disable-infobars"
7879

7980

8081
function cr --description "open built chromium (accepts runtime flags)"
@@ -216,5 +217,23 @@ function maccr-flagged
216217
end
217218

218219
function git-clfastupload
219-
git cl upload --bypass-hooks -o "banned-words~skip"
220-
end
220+
git cl upload --force --bypass-hooks -o "banned-words~skip"
221+
end
222+
223+
224+
# dt. rpp
225+
alias rppunit 'npm test -- front_end/panels/timeline/ front_end/models/trace front_end/ui/legacy/components/perf_ui'
226+
alias rppunit-debug 'npm test -- front_end/panels/timeline/ front_end/models/trace front_end/ui/legacy/components/perf_ui --debug'
227+
alias rppinter 'npm run test -- test/e2e/performance/'
228+
alias rppscreen 'third_party/node/node.py --output scripts/test/run_test_suite.js --config test/interactions/test-runner-config.json --mocha-fgrep "[screenshot]" --test-file-pattern="*/performance/**"'
229+
alias rpplint 'node scripts/test/run_lint_check.js front_end/panels/timeline front_end/models/trace front_end/ui/legacy/components/perf_ui front_end/services/trace_bounds'
230+
alias fjs 'git cl format --js'
231+
alias gitclfastupload 'git-clfastupload'
232+
233+
function rbu
234+
set -l branchname (git status --porcelain=v2 --branch | grep '^# branch.head' | awk '{print $3}')
235+
git checkout origin/main && git rebase-update && git checkout -b main origin/main && depshooks && git cl archive -f --verbose
236+
git checkout "$branchname" && deps
237+
end
238+
239+
alias upload 'git cl format --js && git status --porcelain=v2 && git cl upload'

0 commit comments

Comments
 (0)