Skip to content

Instantly share code, notes, and snippets.

@yevgnenll
yevgnenll / Designing Event-Driven Systems links.md
Created April 20, 2022 07:26 — forked from giampaolotrapasso/Designing Event-Driven Systems links.md
List of links from Designing Event-Driven Systems by Ben Stopford
package com.idolz.data.batch.dto;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.mapping;
import static java.util.stream.Collectors.groupingBy;
package com.geo.spatial.manager;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
package com.geo.spatial.manager;
import java.util.Collection;
import java.util.Objects;
import java.util.function.Supplier;
public final class CollectionHelper {
private Collection<?> collection;
private boolean isEmpty = true;
package com.idolz.data.batch.config;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.jasypt.commons.CommonUtils;
import org.jasypt.encryption.StringEncryptor;
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
import org.jasypt.salt.RandomSaltGenerator;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
# ----------------------------------------
# CORE PROPERTIES
# ----------------------------------------
# IDENTITY (ContextIdApplicationContextInitializer)
spring.application.name=GSA
# PROJECT INFORMATION (ProjectInfoProperties)
# File encoding.
spring.info.build.encoding=UTF-8
@yevgnenll
yevgnenll / install-php-7.sh
Last active April 19, 2018 09:34 — forked from mavieth/install-php-7.sh
Upgrade from PHP 5.X.X to PHP 7 on an AWS EC2 Linux Server
#!/bin/bash
echo "==============================="
echo "Installing PHP 7"
echo "==============================="
sudo yum install php71
echo "==============================="
echo "Installing PHP 7 additional commonly used php packages"
echo "==============================="
@yevgnenll
yevgnenll / gist:acf3932b4d314f20a4fba8a484745514
Last active April 27, 2018 19:42 — forked from ericandrewlewis/gist:95239573dc97c0e86714
Setting up a WordPress site on AWS

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

@yevgnenll
yevgnenll / 1-server.md
Created November 14, 2017 15:44 — forked from dragonjet/1-server.md
Setup Web Server on EC2 Amazon Linux AMI

Step 1: Server Credentials

This assumes you are now connected to the server via SSH.

  • sudo -s Enter root mode for admin access
  • groupadd devgroup Create new group to be later granted access to /var/www/html

Creating a new Root User

  • useradd -G root,devgroup masterdev Create new root user. Also add to the devgroup
  • passwd masterdev Change password for the new root user
  • At this point, you'll need to input your new root user's new password
<template>
<div class="login">
<div class="login_button_area">
<p>
<img src="../../assets/zum-logo.png" alt="zum logo">
<span>쇠파이프에 로그인하기</span>
</p>
<a v-bind:href="contextPath">
<img id="btnLogin" src="../../assets/google_login.png" alt="로그인 버튼">
</a>