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
| { | |
| "actionName": "Job", | |
| "actionData": { | |
| "teamName": 3011, | |
| "primarySkill": 1022, | |
| "secondarySkill": [ | |
| 1033, | |
| 1021, | |
| 1025 | |
| ] |
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 static String convertZipFileToBaseEncodeString() { | |
| File originalFile = new File("multifiles.zip"); | |
| String encodedBase64 = null; | |
| try { | |
| FileInputStream fileInputStreamReader = new FileInputStream(originalFile); | |
| byte[] bytes = new byte[(int) originalFile.length()]; | |
| fileInputStreamReader.read(bytes); | |
| encodedBase64 = new String(Base64.encodeBase64(bytes)); | |
| } catch (FileNotFoundException e) { | |
| e.printStackTrace(); |
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
| Convert a video to Mp4(MPEG-4 AVC) and AAC audio | |
| /* Step 1. Declaring source file and Target file */ | |
| File source = new File("source.avi"); | |
| File target = new File("target.mp4"); | |
| /* Step 2. Set Audio Attrributes for conversion*/ | |
| AudioAttributes audio = new AudioAttributes(); | |
| audio.setCodec("aac"); | |
| // here 64kbit/s is 64000 |
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
| <div | |
| fxLayout="row" | |
| fxLayout.xs="column" | |
| fxFlexFill > | |
| <div fxFlex="33.33" class="sec1" fxFlex.xs="100"> | |
| first-section | |
| </div> | |
| <div fxFlex="33.33" class="sec2" fxFlex.xs="100"> | |
| second-section |
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
| [ | |
| { | |
| "companyImageUrl": "https://merojob.com/media/cache/30/e9/30e9b3cdc11493eca79d3dc4764092c7.jpg", | |
| "title": "Senior Software Engineer", | |
| "company": "XCorp", | |
| "companyAddress": "Kathmandu Remote work", | |
| "keySkills": [ | |
| "React (Client Side) And Aws Node.Js Java Ror Python", | |
| "React (Client Side) And Aws", | |
| "Node.Js", |
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
| <dependency> | |
| <groupId>org.apache.cxf</groupId> | |
| <artifactId>cxf-spring-boot-starter-jaxws</artifactId> | |
| <version>3.2.4</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.cxf</groupId> | |
| <artifactId>cxf-codegen-plugin</artifactId> | |
| <version>3.2.4</version> | |
| </dependency> |
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 network disconnect "${PWD##*/}_shared" roach-4 | |
| docker network disconnect "${PWD##*/}_shared" roach-5 |
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
| @Configuration | |
| @EnableJpaAuditing(dateTimeProviderRef = "dateTimeProvider") | |
| @EnableJpaRepositories("com.sample.repository") | |
| @EnableTransactionManagement | |
| public class DatabaseConfiguration implements EnvironmentAware { | |
| private final Logger log = LoggerFactory.getLogger(DatabaseConfiguration.class); | |
| private RelaxedPropertyResolver dataSourcePropertyResolver; | |
| private RelaxedPropertyResolver slaveDataSourcePropertyResolver; |
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
| # Private key | |
| openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:2048 | |
| # Public key | |
| openssl rsa -pubout -in private.pem -out public_key.pem | |
| # Private key in pkcs8 format (for Java maybe :D) | |
| openssl pkcs8 -topk8 -in private.pem -out private_key.pem | |
| ## nocrypt (Private key does have no 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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
NewerOlder