Tag: bashmagic
-
Bashmagic collection vol1
Keep only last X lines of a file (shrink). echo "$(tail -n 10000 huge.log)" > huge.log Deploy maven artefact to a specific repo without specifying it in pom.xml (format repoId:default:repoUrl). Repo should be specified in your .m2 settings.xml with any necessary credentials. mvn deploy -DaltDeploymentRepository=repo.mydomain.com.my.releases::default::https://repo.mydomain.com/repository/maven-my-releases/ One liner to set password for default PostgreSQL user after…