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
| public TreeNode parseHiearchy(List<OrganizationUnit> organizationUnits) { | |
| HashMap<String, OrganizationUnit> divisions = new HashMap<>(); | |
| HashMap<String, List<OrganizationUnit>> departments = new HashMap<>(); | |
| HashMap<String, List<OrganizationUnit>> jobs = new HashMap<>(); | |
| for (OrganizationUnit organizationUnit : organizationUnits) { | |
| switch (organizationUnit.getOrganizationUnitType()) { | |
| case DIVISION: { | |
| divisions.put(organizationUnit.getPrefix(), organizationUnit); | |
| break; |
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
| curl -v -X PUT -u user:pass -H "Content-Type: application/json; charset=UTF-8" -d "{\"id\":\"111673413\",\"type\":\"page\",\"title\":\"ASD2\",\"space\":{\"key\":\"FP\"},\"body\":{\"storage\":{\"value\":\"hello\",\"representation\":\"storage\"}},\"version\":{\"number\":\"2\"}}" https://confluence.company.cz/rest/api/content/111673413 |
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
| docker run --privileged --name sqlserver2017 -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SomeComplexEnoughtPW2019!" -p 1433:1433 mcr.microsoft.com/mssql/server:2017-latest | |
| // password needs to be complex enought | |
| // its not working with env parameters in 'quotation marks', use "these" |
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
| @Component | |
| @AllArgsConstructor | |
| @Slf4j | |
| public class TokenService { | |
| private final TokenRepository tokenRepository; | |
| private final TokenObtainer tokenObtainer; | |
| public void refreshTokens() { |
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
| docker run mcr.microsoft.com/mssql-tools sh -c "/opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U user -P pass -Q 'select @@version;'" |