Skip to content

Instantly share code, notes, and snippets.

Josh yevgnenll

Block or report user

Report or block yevgnenll

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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;
# ----------------------------------------
# ----------------------------------------
# IDENTITY (ContextIdApplicationContextInitializer)
# PROJECT INFORMATION (ProjectInfoProperties)
# File encoding.
yevgnenll /
Last active Apr 19, 2018 — forked from mavieth/
Upgrade from PHP 5.X.X to PHP 7 on an AWS EC2 Linux Server
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 /
Created Nov 14, 2017 — forked from dragonjet/
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
View Login.vue
<div class="login">
<div class="login_button_area">
<img src="../../assets/zum-logo.png" alt="zum logo">
<span>쇠파이프에 로그인하기</span>
<a v-bind:href="contextPath">
<img id="btnLogin" src="../../assets/google_login.png" alt="로그인 버튼">
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="">
<!-- 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" />
import time
import sys
def elapsed_time(func):
def elsapse(*args, **kwargs):
start = time.time()
result = func(*args, **kwargs)
end = time.time()
class EmptyLinkedList(Exception):
class LinkedList:
class Node:
def __init__(self, element, next_data=None):
self.__element__ = element
self.__next__ = next_data
class EmptyLinkedList(Exception):
class LinkedList:
class Node:
def __init__(self, element, next_data=None):
self.__element__ = element
self.__next__ = next_data
You can’t perform that action at this time.