What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-16 05:40:01
linux cli chart real time
curl -LO https://github.com/tenox7/ttyplot/releases/download/1.4/ttyplot_1.4-1.deb && sudo apt install ./ttyplot_1.4-1.deb { while true; do ps auxw | grep php | grep -v fpm | grep -v grep|grep -v tee | wc -l; sleep 0.5; done } | ttyplot Add solution -
Shell/Bash 2022-02-13 15:15:13
ubuntu restart network manager when ping is low
start on started network-manager stop on runlevel [016] script while true; do if ifconfig eth0 | grep -q "inet addr:"; then # echo "all ok!" else restart network-manager fi sleep 5 done end script Add solution -
Shell/Bash 2022-02-10 23:01:07
how to grep data from site
#!/bin/bash wget -q -O hkindex.html http://www.aastocks.com/EN/market/HKIndex.aspx?Index=VHSI rm -f cq cat hkindex.html | grep -A 23 '' > indextable #cat indextable | grep '>VHSI<' > vhsivalue cat indextable | grep '>HSI<' | awk -F '[&... Add solution -
-
Shell/Bash 2022-02-10 12:40:27
check active ssh connections on linux
last -a | grep -i still Add solution -
Shell/Bash 2022-02-02 02:05:14
show users in sudo group
grep -Po '^sudo.+:\K.*$' /etc/group Add solution
Best helpers
Ranking is empty