Skip to content

Instantly share code, notes, and snippets.

EJLP ejlp12

Block or report user

Report or block ejlp12

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
@ejlp12
ejlp12 / aws_spot_instance.md
Last active Oct 10, 2019
aws spot instances
View aws_spot_instance.md

Ketika Anda menjalankan EC2 instance dari AWS Management Console dengan mengklik tombol "Launch instance" atau menggunakan AWS CLI (Command Line Interface) yaitu dengan perintah aws ec2 run-instances ... maka anda menjalankan EC2 instance yang disebut On-Demand instance

Dengan On-Demand instance anda membayar kapasitas komputasi yang dihitung per jam atau detik (minimum 60 detik) tanpa komitmen jangka panjang. Tanpa komitmen jangkan pajang artinya anda dapat menjalankan atau mematikan instance (berhenti) kapan saja. Harga dari On-Demand instance bersifat tetap dan tergantung dari:

  1. Tipe dari EC2 instance (besarnya daya komputasi CPU, memory, storage dan jaringan)
  2. Amazon Machine Image (AMI) yang digunakan. Yang berarti tergantung dari sistem operasi (misalnya Linux atau Windows) dan software yang terdapat didalamnya (misalnya SQL Server database atau software lain yang bisa anda dapatkan dari AWS Market
@ejlp12
ejlp12 / aws_glue_boto3_example.md
Last active Oct 7, 2019
AWS Glue Create Crawler, Run Crawler and update Table to use "org.apache.hadoop.hive.serde2.OpenCSVSerde"
View aws_glue_boto3_example.md
import boto3

client = boto3.client('glue')

response = client.create_crawler(
    Name='SalesCSVCrawler',
    Role='AWSGlueServiceRoleDefault',
    DatabaseName='sales-cvs',
    Description='Crawler for generated Sales schema',
View EA_mainframe_emulator_hercules.md

Hercules - the Mainframe Emulator

Hercules is an open source software implementation of the mainframe System/370 and ESA/390 architectures, in addition to the new 64-bit z/Architecture.

Website: http://www.hercules-390.org/

My system info:

uname -a
Darwin ejlp-macbook 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
@ejlp12
ejlp12 / AWSDevOpsStudyNotes
Created Oct 3, 2019 — forked from pydevops/AWSDevOpsStudyNotes
AWS DevOps Engineer Professional Study Notes
View AWSDevOpsStudyNotes
CI & CD:
========
2 core software development processes
CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early.
Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc.
workflow based
CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment.
AWS CodeDeploy and CodePipeline provide CI/CD services
Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers.
@ejlp12
ejlp12 / install_artifactory_jenkins_ec2_amazon_linux.md
Last active Sep 18, 2019
Install Artifactory & Jenkins (with aws cli) using docker
View install_artifactory_jenkins_ec2_amazon_linux.md

Install Docker

sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user
docker info
View gist:addf430504fde68dc7cf9f19b4957b11
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
nvm install node
View SamplePage.php
<?php include "dbinfo.inc"; ?>
<html>
<body>
<h1>Sample page</h1>
<?php
/* Connect to MySQL and select the database. */
$connection = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD);
@ejlp12
ejlp12 / aws_session_manager.md
Last active Aug 12, 2019
Setup Session Manager to access EC2 instance without SSH
View aws_session_manager.md

Session Manager offers these benefits:

  • Centralized access control to instances using IAM policies
  • No open inbound ports and no need to manage bastion hosts or SSH keys
  • One-click access to instances from the console and CLI
  • Logging and auditing session activity

Reference:

You can’t perform that action at this time.