-
-
Save rebel1324/d800e7136e30f6d3e5fe90fd117ae222 to your computer and use it in GitHub Desktop.
Copypasta shell scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#*** | clip 으로 커맨드 복사. | |
disksize:df -H | |
cpu:htop | |
csql:service mysqld status | |
rsql:service mysqld restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add this script to somewhere | |
# Example: | |
# qq csql | |
# copies 'service mysqld status' from below. | |
# PoC | |
# Maybe make autocomplete later? | |
MACRO_PATH='qq' | |
cat $MACRO_PATH | grep -Po "^[^#]?$1:\K(.*)$" | tr -d '\n' | clip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment