PS Microsoft.PowerShell.Core\FileSystem:: C:\PhD\Datasets\Astrometry\Set-146> Get-ChildItem -File | ForEach-Object { file2pdfpsedit.exe $_.FullName --args xr }
My notes on Everything ...
PS Microsoft.PowerShell.Core\FileSystem:: C:\PhD\Datasets\Astrometry\Set-146> Get-ChildItem -File | ForEach-Object { file2pdfpsedit.exe $_.FullName --args xr }
#!/usr/local/bin/zsh
SESSION="Maintenance-X"
tmux new -s "${SESSION}" -d
tmux rename-window -t "${SESSION}.0" Main
tmux new-window -d -t "${SESSION}" -n Server1
tmux new-window -d -t "${SESSION}" -n Server2
tmux new-window -d -t "${SESSION}" -n Server3
# Run ssh command in each window
tmux send-keys -t "${SESSION}:1" 'ssh server1.mydomain' Enter
tmux send-keys -t "${SESSION}:2" 'ssh server2.mydomain' Enter
tmux send-keys -t "${SESSION}:3" 'ssh server3.mydomain' Enter
# To run command in a pane within a window, use:
# tmux send-keys -t "${SESSION}:1.<pane-position>" 'ssh server1' Enter
# tmux send-keys -t "${SESSION}:1.top" 'ssh server1' Enter
tmux attach-session -d -t "$SESSION"
This is an example of running a local python script as a user service.
Most of this information was found here.
Service location:
/home/user/.config/systemd/servicename.service
Service definition/contents of servicename.service
[Unit]
Description=Metriful User Service
[Service]
ExecStart=/usr/bin/python3 /home/user/script.py
Restart=on-failure
[Install]
WantedBy=default.target
Reload Systemd so it can find the new service
systemctl --user daemon-reload
Enable Service with
systemctl --user enable servicename.service
Let Service run even when all user sessions have expired
These are the commands to re-run ZSH first time setup.
Device: /dev/ada5, failed to read SMART Attribute Data Device: /dev/ada5, not capable of SMART self-check Device: /dev/ada5, Read SMART Self-Test Log Failed The volume tank (ZFS) state is DEGRADED: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. Device: /dev/ada5, Read SMART Error Log Failed
Disk went to UNAVAIL on FreeNAS. It was a complete disk failure where the drive would not even turn on.
Checking status of zfs pools: [..] pool: tank state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://illumos.org/msg/ZFS-8000-2Q scan: scrub repaired 0 in 3h22m with 0 errors on Sat Mar 11 15:55:33 2017 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 gptid/2dc7c53c-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0 gptid/2e7247c8-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0 gptid/2f1f7b49-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0 9773863262585734395 UNAVAIL 0 0 0 was /dev/gptid/2fa84005-2b99-11e6-94d8-0015177adaa2.eli gptid/306d3755-2b99-11e6-94d8-0015177adaa2.eli ONLINE 0 0 0 errors: No known data errors