.profile files for easy management of nodes
This commit is contained in:
parent
cecc1b954e
commit
b1ab3f5887
25
.profile_binary
Normal file
25
.profile_binary
Normal file
@ -0,0 +1,25 @@
|
||||
# ~/.profile: executed by Bourne-compatible login shells.
|
||||
|
||||
if [ "$BASH" ]; then
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
fi
|
||||
|
||||
mesg n 2> /dev/null || true
|
||||
|
||||
|
||||
alias e="exit"
|
||||
alias cm="ps -eo comm,pcpu --sort -pcpu | head -8; ps -eo comm,pmem --sort -pmem | head -8"
|
||||
alias st='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3'
|
||||
alias myip='curl icanhazip.com'
|
||||
alias wttr='curl wttr.in'
|
||||
|
||||
neofetch
|
||||
|
||||
|
||||
alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l && cd ~'
|
||||
alias node-info='cd ~/ceremonyclient/node && ./node -node-info && cd ~'
|
||||
alias db-console='cd ~/ceremonyclient/node && ./node --db-console && cd ~'
|
||||
alias balance='cd ~/ceremonyclient/node && ./node -balance && cd ~'
|
||||
alias node-log='sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat'
|
||||
25
.profile_docker
Normal file
25
.profile_docker
Normal file
@ -0,0 +1,25 @@
|
||||
# ~/.profile: executed by Bourne-compatible login shells.
|
||||
|
||||
if [ "$BASH" ]; then
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
fi
|
||||
|
||||
mesg n 2> /dev/null || true
|
||||
|
||||
|
||||
alias e="exit"
|
||||
alias cm="ps -eo comm,pcpu --sort -pcpu | head -8; ps -eo comm,pmem --sort -pmem | head -8"
|
||||
alias st='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3'
|
||||
alias myip='curl icanhazip.com'
|
||||
alias wttr='curl wttr.in'
|
||||
|
||||
neofetch
|
||||
|
||||
|
||||
alias peer-count='cd ~/ceremonyclient/ && docker compose exec node grpcurl -plaintext -max-msg-sz 5000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l'
|
||||
alias node-info='cd ~/ceremonyclient/ && docker compose exec node node -node-info && cd ~'
|
||||
alias db-console='cd ~/ceremonyclient/ && - docker compose exec node node --db-console && cd ~'
|
||||
alias balance='cd ~/ceremonyclient/ && docker compose exec node node -balance && cd ~'
|
||||
alias node-log='cd ~/ceremonyclient/ && docker compose logs -f -n, --tail 100 && cd ~'
|
||||
25
.profile_service
Normal file
25
.profile_service
Normal file
@ -0,0 +1,25 @@
|
||||
# ~/.profile: executed by Bourne-compatible login shells.
|
||||
|
||||
if [ "$BASH" ]; then
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
fi
|
||||
|
||||
mesg n 2> /dev/null || true
|
||||
|
||||
|
||||
alias e="exit"
|
||||
alias cm="ps -eo comm,pcpu --sort -pcpu | head -8; ps -eo comm,pmem --sort -pmem | head -8"
|
||||
alias st='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3'
|
||||
alias myip='curl icanhazip.com'
|
||||
alias wttr='curl wttr.in'
|
||||
|
||||
neofetch
|
||||
|
||||
|
||||
alias peer-count='cd ~/ceremonyclient/node && grpcurl -plaintext -max-msg-sz 150000000 localhost:8337 quilibrium.node.node.pb.NodeService.GetPeerInfo | grep peerId | wc -l && cd ~'
|
||||
alias node-info='cd ~/ceremonyclient/node && GOEXPERIMENT=arenas go run ./... -node-info && cd ~'
|
||||
alias db-console='cd ~/ceremonyclient/node && - GOEXPERIMENT=arenas go run ./... --db-console && cd ~'
|
||||
alias balance='cd ~/ceremonyclient/node && GOEXPERIMENT=arenas go run ./... -balance && cd ~'
|
||||
alias node-log='sudo journalctl -u ceremonyclient.service -f --no-hostname -o cat'
|
||||
Loading…
Reference in New Issue
Block a user