Establish invariants for a unit test in the setup.
In concrete terms, in JUnit for example, use
@Before methods to make sure that the state of the world fits the assumptions made in the tests. In the same manner, use
@After to ensure that post conditions are also "as expected".
Provides inter-cluster replication at teh namespace or optionally setgranularity level.
This is an Aerospike Enterprise Edition feature.
Aerospike can be configured to
evict least recently updated data.
Expiration and eviction algorithms use records
TTL (Time To Live) value to determine eligibility for removal.
default-ttl can be set at a
namespace level. See the documentation
above for examples.
Checking docker exposed ports can be done by
docker port command - https://docs.docker.com/engine/reference/commandline/port/
AssertJ test for equality ignoring fields can be done via
isEqualToComparingOnlyGivenFields, as in the following example,
assertThat(testVersion).isEqualToComparingOnlyGivenFields(sourceVersion, "supplySourceList", "name", "defaultSeatId");
EnumSet optimisations - https://stackoverflow.com/questions/16637288/optimization-done-by-an-enummap-enumset
Examples of usage - https://dzone.com/articles/20-examples-of-using-javas-completablefuture
-o option for
--only-matching entries in a search - pretty useful in practice.
Julia DataFrame Cheat Sheet - https://jcharistech.wordpress.com/julia-dataframes-cheat-sheets/
Ansible forks with
More on Ansible performance tuning - https://www.ansible.com/blog/ansible-performance-tuning.
Screen window splitting - https://tomlee.co/2011/10/gnu-screen-splitting/
tmux a shell has to be spawned explicitly after splitting.
To do a vertical split -
Ctrl+a | then
Ctrl+TAB to go to the other
split. Then as usual, use
Ctrl+a c to create a window.
For a horizontal split use
OmitStackTraceInFastThrow - https://github.com/SAP/SapMachine/issues/501