-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,574 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/xintao.lai/Library/Application Support/iTerm2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"dependencies": { | ||
"create-next-app": "^12.2.3", | ||
"create-vite": "^5.2.3" | ||
"create-vite": "^5.2.3", | ||
"markmap-cli": "^0.17.2" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SESSION=$(tmux display-message -p '#S') | ||
|
||
tmux new-window -t $SESSION | ||
|
||
WINDOW=$(tmux display-message -p '#{last_window_index}') | ||
|
||
tmux rename-window -t $SESSION:$WINDOW $1 | ||
|
||
tmux split-window -v -t $SESSION:$WINDOW.1 | ||
tmux select-layout -t $SESSION:$WINDOW tile | ||
|
||
tmux send-keys -t $SESSION:$WINDOW.1 "$*" C-m | ||
tmux send-keys -t $SESSION:$WINDOW.2 "$*" C-m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
#!/bin/bash | ||
|
||
cpu_freq=$(sudo powermetrics -i 1000 -n 1 -s cpu_power \ | ||
| grep "System Average frequency as fraction of nominal" \ | ||
| awk '{sum += substr($8, 1, length($8)-1)} END {print sum/NR}') | ||
|
||
load1=$(uptime | rg -o "load average: (.*?)," -r "\$1") | ||
|
||
load1round=$( printf "%.0f" $load1 ) | ||
|
||
echo $load1round | ||
echo " $load1round / $cpu_freq%" |
Binary file not shown.