- Reverse search of command history:
Ctrl+R
- Execure previous command:
!! (may use in combination with sudo: sudo !!)
- Trimming of line:
Ctrl+K (to the end) | Ctrl+U (to the start) | Ctrl+Y (yeld cuted part)
- use less -F instead tail -f
Ctrl+R
!! (may use in combination with sudo: sudo !!)
Ctrl+K (to the end) | Ctrl+U (to the start) | Ctrl+Y (yeld cuted part)
-- Get Max ID from table | |
SELECT MAX(id) FROM table; | |
-- Get Next ID from table | |
SELECT nextval('table_id_seq'); | |
-- Set Next ID Value to MAX ID | |
SELECT setval('table_id_seq', (SELECT MAX(id) FROM table)); |
public class Asset { | |
private AssetType type; | |
@JsonTypeInfo( | |
use = JsonTypeInfo.Id.NAME, | |
include = JsonTypeInfo.As.EXTERNAL_PROPERTY, | |
property = "type" | |
) | |
@JsonSubTypes({ | |
@JsonSubTypes.Type(value = ImageAssetProperties.class, name = "image"), |