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
| kubectl get pod -n $namespace | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n $namespace |
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
| mvn -Dmdep.copyPom=true dependency:copy-dependencies |
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
| reposync --gpgcheck -l --repoid=$repo_id --download_path=$path |
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
| tr -d '\r' < origin_file > escaped_file |
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
| git remote -v | |
| #origin https://github.com/USERNAME/REPOSITORY.git (fetch) | |
| #origin https://github.com/USERNAME/REPOSITORY.git (push) | |
| git remote set-url origin git@github.com:USERNAME/REPOSITORY.git | |
| git remote -v | |
| # Verify new remote URL | |
| #origin git@github.com:USERNAME/REPOSITORY.git (fetch) | |
| #origin git@github.com:USERNAME/REPOSITORY.git (push) |
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
| SET FOREIGN_KEY_CHECKS=0; | |
| SELECT | |
| Concat('TRUNCATE TABLE ', TABLE_NAME, ';') | |
| FROM | |
| INFORMATION_SCHEMA.TABLES | |
| WHERE | |
| table_schema = 'SCHEMA_NAME'; | |
| --Truncate all |
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
| rpm -qa | xargs yum info | grep '^From repo' | sort | uniq -c | sort -rn | |
| #If you want to remove specific repository | |
| rm /etc/yum.repos.d/repo-file.repo |
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
| yum install yum-utils | |
| yum remove `package-cleanup --leaves` |
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
| # Assume that username is test | |
| # Check password files | |
| getent passwd test | |
| # Check processes running as a user | |
| ps aux | grep "^test" | |
| # Check files owned by a user | |
| find / -xdev -user test |
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
| time wget $urlAddress -q --output-document=/dev/null |
NewerOlder