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 * as cdk from 'aws-cdk-lib'; | |
| import { Construct } from 'constructs'; | |
| import * as ec2 from 'aws-cdk-lib/aws-ec2'; | |
| import * as ecs from 'aws-cdk-lib/aws-ecs'; | |
| import * as iam from 'aws-cdk-lib/aws-iam'; | |
| import * as logs from 'aws-cdk-lib/aws-logs'; | |
| /** | |
| * You can run this task definition via CLI, SDK, lambda | |
| * CLI: aws ecs run-task --cluster <your-cluster-name> --task-definition <task-definition-arn> --launch-type FARGATE --network-configuration "awsvpcConfiguration={subnets=[<subnet-id>],securityGroups=[<security-group-id>],assignPublicIp=ENABLED}" |
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
| package com.acme.web; | |
| import javax.servlet.Filter; | |
| import javax.servlet.FilterChain; | |
| import javax.servlet.FilterConfig; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRequest; | |
| import javax.servlet.ServletResponse; | |
| import javax.servlet.http.HttpServletResponse; | |
| import java.io.IOException; |
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 | |
| docker run -d --name oracle -p 1521:1521 -p 49162:8080 \ | |
| -v ~/.data/oracle:/u01/app/oracle sath89/oracle-xe-11g | |
| # INFO: | |
| # https://github.com/MaksymBilenko/docker-oracle-xe-11g | |
| # | |
| # user/pass: system/oracle sys/oracle | |
| # |
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
| <plugin> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-maven-plugin</artifactId> | |
| <configuration> | |
| <executable>true</executable> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <artifactId>maven-resources-plugin</artifactId> | |
| <executions> |
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
| package infrastructure; | |
| import org.springframework.boot.SpringBootConfiguration; | |
| import org.springframework.messaging.simp.config.MessageBrokerRegistry; | |
| import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; | |
| import org.springframework.web.socket.config.annotation.StompEndpointRegistry; | |
| import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer; | |
| /** | |
| * Websocket configuration |
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
| # --- builder --- | |
| FROM openjdk:8-jdk-alpine AS builder | |
| COPY . /usr/src/app/ | |
| WORKDIR /usr/src/app/ | |
| RUN apk --no-cache add maven && mvn package -Dmaven.test.skip=true | |
| # --- release --- | |
| FROM openjdk:8-jre-alpine AS release |
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
| <plugin> | |
| <groupId>org.codehaus.mojo</groupId> | |
| <artifactId>exec-maven-plugin</artifactId> | |
| <version>1.6.0</version> | |
| <configuration> | |
| <executable>java</executable> | |
| <arguments> | |
| <argument>-Xms600m</argument> | |
| <argument>-Xmx600m</argument> | |
| <argument>-XX:MaxPermSize=512m</argument> |
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
| { | |
| "editor.fontSize": 16, | |
| "editor.tabSize": 2, | |
| "editor.glyphMargin": true, | |
| "terminal.integrated.fontSize": 16, | |
| "terminal.integrated.shell.osx": "/opt/local/bin/bash", | |
| "files.trimTrailingWhitespace": true, | |
| "files.autoSave": "afterDelay", | |
| "javascript.suggest.completeFunctionCalls": true, | |
| "typescript.suggest.completeFunctionCalls": true, |
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
| const path = require('path'); | |
| const { ProgressPlugin } = require('webpack'); | |
| /** | |
| * Webpack config | |
| */ | |
| module.exports = { | |
| entry: './src/main.ts', | |
| mode: 'production', | |
| target: 'node', |
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
| # bash_profile | |
| ############################################# | |
| BLACK="\[\033[0;38m\]" | |
| RED="\[\033[0;31m\]" | |
| RED_BOLD="\[\033[01;31m\]" | |
| BLUE="\[\033[01;34m\]" | |
| GREEN="\[\033[0;32m\]" | |
| export PS1="$BLACK[ \u@$RED\h $GREEN\w$RED_BOLD\$(__git_ps1)$BLACK ] " | |
| export CLICOLOR=1 |
NewerOlder