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 config --global alias.agent-commit "commit --trailer 'Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com'" | |
| git config --global alias.agent-commit "commit --trailer 'Co-authored-by: Claude Opus 4.8 noreply@anthropic.com'" |
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
| project xmlns="http://maven.apache.org/POM/4.0.0"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.mycompany.app</groupId> | |
| <artifactId>my-app</artifactId> | |
| <version>1.0.0</version> | |
| <properties> | |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
| <maven.compiler.source>1.8</maven.compiler.source> |
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
| find . -regex ".*/src/test/.*Test.java" |
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
| # delete compose stack PLUS attached volumes | |
| docker compose down -v | |
| # delete dangling containers / images | |
| docker image prune | |
| docker container prune |
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
| ansible-playbook -i inventory.yml playbook.yml --ask-become-pass |
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
| # on MacOS to avoid the "zsh: no matches found" error, wrap url in quotes, or 'setopt noglob' to | |
| # turn off wildcard '?' matching | |
| # show HTTP response | |
| curl -i url | |
| # follow 302 redirects | |
| curl -L url | |
| # search response for http status, discarding all other content, and following redirects (-L) |
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
| {% expression %} | |
| {{ output_value_in_context }} | |
| {% for item in items %} | |
| {{ item }} | |
| {% endfor %} | |
| {% if item %} | |
| output something |
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
| # Running dev server: | |
| python3 manage.py runserver | |
| # Adding a user to admin: | |
| python3 manage.py createsuperuser | |
| # interactive shell for Django apps | |
| python3 manage.py shell | |
| # Adding app to installed apps: |
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 test -Dtest=package.testname -pl subprojectname -am -Dsurefire.failIfNoSpecifiedTests=false | |
| // -pl module name containing test | |
| // -am = also modules, to build dependent modules | |
| // -Dsurefire.failIfNoSpecifiedTests=false = don't fail if dependent modules don't contain any tests |
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
| SELECT version FROM PRODUCT_COMPONENT_VERSION | |
| WHERE product LIKE 'Oracle Database%'; |
NewerOlder