spring devtools idea settings
Problem: code not getting reloaded when something changes.
Solution: found here
- add devtools to your dependencies
- go to Preferences -> Build, execution, deployment -> Compiler and check “Build project automatically”
- press cmd-shift-a , and select registry
- find and check compiler.automake.allow.when.app.running
postgres reassign owned
Problem: wanted to change everything owned by one user to be owned by another user.
Solution: found here
generate pem file from crt and key
Problem: have a .key and a .crt and want to generate a .pem file from them.
Solution:
- found here: a simple cat will do
ssh log files on centos
Problem: want to see logs for failed ssh attempts on CentOS.
Solution: look at /var/log/secure
java deserialization with jackson
Been debugging a deserialization issue for 3 hours. Turns out I had this in my code:
When, it should have been these:
hbase scan example
Problem: want to perform a scan on a table, and list the values.
Solution:
java hbase obtain column families for a particular table
Problem: want to obtain column families for a particular table.
Solution:
git merge unrelated histories
Problem: want to merge 2 branches that don’t share a common history.
Solution:
view principals in a kerberos keytab file
Problem: want to see principals in a keytab file.
Solution:
- start ktutil
- read your keytab file:
- list them: