Configure SSH to avoid prompting for a password each time.
Currently, after setting up SSH with a PEM file, you can access a server without a password like so:
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"route53:ChangeResourceRecordSets", | |
"route53:ListResourceRecordSets" | |
], | |
"Resource": [ |
This script automates the process of setting up an S3 bucket in AWS. It performs the following tasks:
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "*", | |
"Resource": [ | |
"arn:aws:s3:::bucketname", |
#! /usr/bin/bash | |
read -p "Give size of swap you wants to create:" usr_input | |
echo "Your swap memory will be create of size : $usr_input" | |
sudo fallocate -l $usr_input /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon --show |
[ | |
{ | |
"AllowedHeaders": [ | |
"*" | |
], | |
"AllowedMethods": [ | |
"PUT", | |
"POST", | |
"GET" | |
], |
server { | |
server_name domain.com; | |
location / { | |
proxy_pass http://localhost:1111; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection 'upgrade'; | |
proxy_set_header Host $host; |
check git remove by this command
git remote -v
Add second github remote
git remote add github https://github.com/organization/repo.git
check remote again