Skip to content

Instantly share code, notes, and snippets.

Avatar
😁

Josh yevgnenll

😁
View GitHub Profile
View ConceptSphere.java
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;
View CollectionHelperTest.java
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;
View CollectionHelper.java
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;
View JasyptEncryptorConfig.java
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;
View application.properties
# ----------------------------------------
# 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 Apr 19, 2018 — forked from mavieth/install-php-7.sh
Upgrade from PHP 5.X.X to PHP 7 on an AWS EC2 Linux Server
View install-php-7.sh
#!/bin/bash
echo "==============================="
echo "Installing PHP 7"
echo "==============================="
sudo yum install php71
echo "==============================="
echo "Installing PHP 7 additional commonly used php packages"
echo "==============================="
View gist:acf3932b4d314f20a4fba8a484745514

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 Nov 14, 2017 — forked from dragonjet/1-server.md
Setup Web Server on EC2 Amazon Linux AMI
View 1-server.md

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
View Login.vue
<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>
View log4j.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Appenders -->
<appender name="ESTatStdout" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%5p [%d] [%C:%M] - [%m]%n" />
</layout>
You can’t perform that action at this time.