mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 10:08:30 +02:00
Trivial changes.
This commit is contained in:
@ -1,2 +1,3 @@
|
||||
# To see most used top 10 commands:
|
||||
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
|
||||
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10
|
||||
|
||||
|
@ -1,3 +1,2 @@
|
||||
# To find listening ports
|
||||
lsof -Pnl +M -i4
|
||||
|
||||
|
@ -2,4 +2,4 @@
|
||||
CREATE DATABASE owa CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||
|
||||
# To add a user and give rights on the given database
|
||||
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'IDENTIFIED BY 'password' WITH GRANT OPTION;
|
||||
GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'IDENTIFIED BY 'password' WITH GRANT OPTION;
|
Reference in New Issue
Block a user