Skip to content

Instantly share code, notes, and snippets.

👨‍🎤

Joy Prakash Sharma droidlabour

👨‍🎤
Block or report user

Report or block droidlabour

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
@droidlabour
droidlabour / ubuntu-ecs-agent.sh
Created May 18, 2018
Create Base AWS ECS Container Instance (Ubuntu 16.04) AMI
View ubuntu-ecs-agent.sh
#!/bin/bash
# Create Base AWS ECS Container Instance (Ubuntu 16.04) AMI
########################### NOTE ##########################
# To use the base Ubuntu ECS AMI
# Add following lines to UserData
# echo ECS_CLUSTER=ecs-cluster-name >> /etc/ecs/ecs.config
# systemctl enable docker-container@ecs-agent.service
# systemctl start docker-container@ecs-agent.service
@droidlabour
droidlabour / Dockerfile
Last active Jan 20, 2018
Docker image with Docker & Java 8 Preinstalled
View Dockerfile
# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/asl/
#
# or in the "license" file accompanying this file.
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
# See the License for the specific language governing permissions and limitations under the License.
@droidlabour
droidlabour / configure-pat.sh
Created Nov 20, 2017
AWS's /usr/local/sbin/configure-pat.sh script (un-altered) on the template: amzn-ami-vpc-nat-pv-2013.09.0.x86_64-ebs (ami-ad227cc4)
View configure-pat.sh
#!/bin/bash
# Configure the instance to run as a Port Address Translator (PAT) to provide
# Internet connectivity to private instances.
function log { logger -t "vpc" -- $1; }
function die {
[ -n "$1" ] && log "$1"
log "Configuration of PAT failed!"
exit 1
View README.md

AWS CloudFormation

  • https://console.aws.amazon.com/cloudformation/home?region=eu-west-1
  • upload main.json -> Next
  • complete form
    • DBName (MySQL database where the sql will be imported)
    • InstanceType (RDS instance type)
    • RDSMasterPassword (MySQL Password for the RDS instance)
    • RDSMasterUserName (MySQL Username for the RDS instance)
    • SQLS3Bucket (S3 Bucket Name where you'll upload the SQL file which will be imported to RDS)
@droidlabour
droidlabour / Dockerfile
Last active Jun 22, 2017
Firebird Docker droidlabour/firebird
View Dockerfile
FROM ubuntu:14.04.4
MAINTAINER Joy Prakash Sharma <droidlabour@gmail.com>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:mapopa -y
RUN apt-get update
RUN apt-get install -y firebird2.5-super
RUN apt-get install -y firebird2.5-examples
RUN apt-get install -y firebird2.5-dev
You can’t perform that action at this time.