- Zed text editor installed
- Ollama installed
This Gist documents the minimum required for the two ways to integrate SpotBugs on a test-only project:
The following plugin config will run spotbugs against your test code, and fail the build if it finds anything. Run it as follows:
mvn clean 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
| mvnw text eol=lf | |
| mvnw.cmd text eol=crlf |
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
| require 'test/unit' | |
| # implementation | |
| class Duration | |
| def in_seconds(raw_duration) | |
| match = raw_duration.match(/PT(?:([0-9]*)H)*(?:([0-9]*)M)*(?:([0-9.]*)S)*/) | |
| hours = match[1].to_i | |
| minutes = match[2].to_i | |
| seconds = match[3].to_f | |
| seconds + (60 * minutes) + (60 * 60 * hours) |
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
| Exec { | |
| logoutput => 'on_failure' | |
| } | |
| exec { 'some_command' : | |
| #..., | |
| logoutput => true | |
| } |
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
| <?xml version="1.0"?> | |
| <bookstore specialty="novel"> | |
| <book style="autobiography"> | |
| <author> | |
| <first-name>Joe</first-name> | |
| <last-name>Bob</last-name> | |
| <award>Trenton Literary Review Honorable Mention</award> | |
| </author> | |
| <price>12</price> | |
| </book> |
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
| #Mounting the share is a 2 stage process: | |
| # 1. Create a directory that will be the mount point | |
| # 2. Mount the share to that directory | |
| #Create the mount point: | |
| mkdir share_name | |
| #Mount the share: | |
| mount_smbfs //username:password@server.name/share_name share_name/ |
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
| wget https://chromedriver.googlecode.com/files/chromedriver_linux64_2.3.zip | |
| unzip chromedriver_linux64_2.3.zip | |
| sudo cp chromedriver /usr/bin/chromedriver | |
| sudo chown root /usr/bin/chromedriver | |
| sudo chmod +x /usr/bin/chromedriver | |
| sudo chmod 755 /usr/bin/chromedriver |
OS:
CentOS6
Output of uname -a:
$ uname -a
Linux localhost.localdomain 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Chrome version:
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
| class MyResource | |
| include HTTParty | |
| debug_output $stdout # <= will spit out all request details to the console | |
| #... | |
| end |
NewerOlder