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" encoding="UTF-8"?> | |
| <configuration> | |
| <appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender"> | |
| <encoder> | |
| <Pattern>.%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg %n | |
| </Pattern> | |
| </encoder> | |
| <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | |
| <level>TRACE</level> | |
| </filter> |
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
| server.port = 8443 | |
| server.ssl.key-store=classpath:sample.jks | |
| #server.ssl.key-store=file://var/tmp/sample.jks | |
| #server.ssl.key-store=file:///K:/DEV/SSL/sample.jks | |
| server.ssl.key-store-password = secret | |
| server.ssl.key-password = password |
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
| @Api(value = "xxx") | |
| @FrameworkEndpoint | |
| @SessionAttributes("authorizationRequest") | |
| public class OAuthAuthorizationEndpoint { | |
| private AuthorizationEndpoint authorizationEndpoint; | |
| /** | |
| * @param endpoint | |
| * base AuthorizationCheckpoint |
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
| @PostMapping(path="/change_password") | |
| public ResponseEntity<Void> changePassword(@RequestBody MmsUserDto userDTO) { | |
| try { | |
| LOGGER.debug("!!! Changing password for {}", userDTO.getId()); | |
| MmsUser user = mmsUserService.findOneById(userDTO.getId()); | |
| if(!this.passwordEncoder.matches(userDTO.getPassword(), user.getPassword())) { | |
| return new ResponseEntity<>(HttpStatus.NOT_FOUND); | |
| } |
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
| BEGIN | |
| --Bye Sequences! | |
| FOR i IN (SELECT us.sequence_name FROM USER_SEQUENCES us) | |
| LOOP | |
| EXECUTE IMMEDIATE 'drop sequence '|| i.sequence_name ||''; | |
| END LOOP; | |
| --Bye Tables! | |
| FOR i IN (SELECT ut.table_name FROM USER_TABLES ut) |
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
| spool &1\oracle_create_role.log | |
| set echo on | |
| DROP ROLE R_MMS_ADMIN; | |
| CREATE ROLE R_MMS_ADMIN; | |
| GRANT CONNECT TO R_MMS_ADMIN; | |
| GRANT RESOURCE TO R_MMS_ADMIN; | |
| GRANT CREATE SESSION TO R_MMS_ADMIN; |
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
| #!/usr/bin/env bash | |
| export MY_NAME="Ibou from my_env_variable.sh file" | |
| #To put in /etc/profile.d/my_env_variables.sh |
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
| Create archetype | |
| ------------------------ | |
| mvn archetype:create-from-project | |
| >> target/generated-sources/archetype | |
| >> main/resources has two folders: | |
| 1. archetype-resources – this is the project template and what will be generated when the archetype is run | |
| 2. META-INF/maven – this contains the archetype-metadata.xml file which has the settings and options when generating a new project. |
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 -O jq https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 | |
| chmod +x ./jq | |
| cp jq /usr/bin |
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
| import org.springframework.boot.context.embedded.FilterRegistrationBean; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.security.access.AccessDecisionVoter; | |
| import org.springframework.security.access.vote.AffirmativeBased; | |
| import org.springframework.security.access.vote.RoleVoter; | |
| import org.springframework.security.authentication.AuthenticationManager; | |
| import org.springframework.security.authentication.AuthenticationProvider; | |
| import org.springframework.security.authentication.ProviderManager; | |
| import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity; |
OlderNewer