Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Cheat sheet: Difference between revisions

From posixlycorrect wiki
No edit summary
No edit summary
Line 5: Line 5:
!Command
!Command
!Description
!Description
!Notes
|-
|-
|nixos-rebuild switch --build-host root@posixlycorrect.com --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps
|nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps
|Deploy server
|Deploy server
|Use --build-host root@posixlycorrect.com to compile in the vps
|-
|-
|sudo -u postgres psql
|sudo -u postgres psql
|
|
|
|-
|-
|sudo ss -tpn
|sudo ss -tpn
|Check current connections
|Check current connections
|
|-
|-
|nix flake lock --commit-lock-file --update-input homepage
|nix flake lock --commit-lock-file --update-input homepage
|Deploy homepage
|Deploy homepage
|
|-
|-
|fail2ban-client unban nginx-bad-request <banned ip>
|fail2ban-client unban nginx-bad-request <banned ip>
|
|
|
|}
|}

Revision as of 03:52, 13 August 2024

This is a simple list of useful commands for use in the VPS. Some of the commands are self-explanatory and no description is needed.

Commands
Command Description Notes
nixos-rebuild switch --target-host root@posixlycorrect.com --use-substitutes --flake .\#vps Deploy server Use --build-host root@posixlycorrect.com to compile in the vps
sudo -u postgres psql
sudo ss -tpn Check current connections
nix flake lock --commit-lock-file --update-input homepage Deploy homepage
fail2ban-client unban nginx-bad-request <banned ip>