Posts

Performance Test - Locust

1. Create New EC2 instance for Locust Server https://docs.locust.io/en/stable/installation.html 2. Install pip curl https : // bootstrap . pypa . io / get - pip . py - o get - pip . py 3. Install Locust

[AWS][EC2] Connecto to your instance

Image
Connecto to your instance Connection method: A standalone SSH client To access your instance: 1. Open an SSH client. (find out how to connect using PuTTY) 2. Locate your private key file (mijung.pem). The wizard automatically detects the key you used to launch the instance. USING PSCP TO TRANSFER FILES SECURELY(https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html) STARTING PSCP To start PSCP it will need either to be on your PATH or in your current directory. set PATH=C:\Program Files\PuTTY;%PATH% USING PUBLIC KEY AUTHENTICATION WITH PSCP Firstly, PSCP can use PuTTY saved sessions in place of hostnames. So you would do this: Run PuTTY, and create a PuTTY saved session (https://www.ssh.com/ssh/putty/putty-manuals/0.68/Chapter5.html#pscp-usage-basics-host) which specifies your private key file. You will probably also want to specify a username to log in. In PSCP, you can now use the name of the session instead of a hostname: type pscp sessionname :file loca

[GO] What should be the values of GOPATH and GOROOT?

Image
https://stackoverflow.com/questions/7970390/what-should-be-the-values-of-gopath-and-goroot GOPATH   is discussed  in the  cmd/go  documentation : The  GOPATH  environment variable lists places to look for Go code. On Unix, the value is a colon-separated string. On Windows, the value is a semicolon-separated string. On Plan 9, the value is a list. GOPATH  must be set to get, build and install packages outside the standard Go tree. GOROOT   is discussed in  the installation instructions : The Go binary distributions assume they will be installed in  /usr/local/go  (or  c:\Go  under Windows), but it is possible to install the Go tools to a different location. In this case you must set the  GOROOT  environment variable to point to the directory in which it was installed. For example, if you installed Go to your home directory you should add the following commands to  $HOME/.profile : export GOROOT = $HOME / go export PATH = $PATH : $GOROOT / bin Note:   GOROOT  must be

Essential git commands

1) git config Utility: To set your user name and email in the main configuration file. How to:  To check your name and email:  git config --global user.name and git config --global user.email .  To set your new email or name: git config --global user.name = “xxxx” and git config --global user.email = “xxxx@email.com” 2) git init Utility: To initialize a git repository for a new or existing project. How to: git init in the root of your project directory. 3) git clone Utility: To copy a git repository from remote source, also sets the remote to original source so that you can pull again. How to: git clone <:clone git url:> git clone through ssh:  git clone ssh://username@host.xz/absolute/path/to/repo.git/ git clone username@host.xz:relative/path/to/repo.git/ 4) git status Utility: To check the status of files you’ve changed in your working directory, i.e, what all has changed since your last commit. How to: git status in your working directo

VPC

Image
Requirements: CREATE VPC - Subnet (AZ) -> Public     -> Internet connection both of inbound and outbound          -> SG(Secret Gate, whitelist)              -> SSH(port 22) open for the office IP     -> Linux framework     -> ec2 instance     -> In order to access to the private -> Private     -> No internet connection.     -> Linux, ec2, web application (port 80)     -> NAT gateway for the outbound     -> ELB(gateway) to aceess to the private         -> SG(Secret Gate, whitelist)              -> SSH(port 22) open for the office IP References: Amazon Virtual Private Cloud: https://aws.amazon.com/vpc/ Amazon VPC Scenarios and Examples Getting Started with Amazon VPC NAT Instances Route Tables ebooks: Amazon Virtual Private Cloud Overview Amazon Virtual Private Cloud User Guide Amazon Virtual Private Cloud Network Administrator Guide Amazon Virtual Private Cloud (Amazon VPC)  lets you provision  a