Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hpc/monitor_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ while true; do
printf "%-10s %-8s %-10s %-8s %-10s %-8s\n" "JOBID" "TIME" "NODE" "MaxMem" "CPUTime" "CPU%"
printf "%-10s %-8s %-10s %-8s %-10s %-8s\n" "----------" "--------" "----------" "--------" "----------" "--------"

for jobid in $(squeue -u zyyu -h -o "%i"); do
for jobid in $(squeue -u "$USER" -h -o "%i"); do
elapsed=$(squeue -j $jobid -h -o "%M")
node=$(squeue -j $jobid -h -o "%N")
ncpus=$(squeue -j $jobid -h -o "%C")
Expand Down
4 changes: 2 additions & 2 deletions linux/services/email.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=1
User=stanfish
ExecStart=/home/stanfish/scripts/system/fetch-emails.sh
# User= # set locally: User=your-username
ExecStart=%h/scripts/system/fetch-emails.sh
Comment on lines +11 to +12

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve explicit service user in email unit

Commenting out User= changes this from an unprivileged user service to running as root in the system manager, which also changes %h to root’s home and makes ExecStart resolve under /root rather than the intended account. On hosts where the script is in a normal user home, this will fail to start and also broadens privileges unexpectedly.

Useful? React with 👍 / 👎.


[Install]
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion sway/40-sway-background.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
output * bg /home/stanfish/Git/my-configs/img/space.jpeg fill
output * bg ~/.config/sway/wallpaper.jpeg fill
4 changes: 2 additions & 2 deletions wezterm/.wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ domains.apply_to_config(config, {
config.ssh_domains = { {
name = "greatlakes",
remote_address = "greatlakes.arc-ts.umich.edu",
username = "zyyu",
username = "username",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Resolve remote username dynamically for Great Lakes SSH

Replacing the real account with the literal string "username" makes both connection paths attempt to authenticate as a non-existent user unless someone manually edits the file, so the built-in Great Lakes entries stop working out of the box. To keep this portable without breaking connectivity, this should derive the username from environment/SSH config or omit it rather than hardcoding a placeholder account name.

Useful? React with 👍 / 👎.

} }

-- wezterm will automatically connect to unix mux server
Expand All @@ -367,7 +367,7 @@ config.default_gui_startup_args = { "connect", "unix" }
config.launch_menu = {
{
label = "greatlakes",
args = { "ssh", "zyyu@greatlakes.arc-ts.umich.edu" },
args = { "ssh", "username@greatlakes.arc-ts.umich.edu" },
},
{
label = "msvc",
Expand Down
Loading