Skip to content

Instantly share code, notes, and snippets.

View izmilia-prastika's full-sized avatar

izmilia-prastika izmilia-prastika

  • -
  • Jakarta, Indonesia
View GitHub Profile
<html>
<head>
<title>Portfolio Front End Developer</title>
</head>
<body>
Hello
</body>
</html>
@izmilia-prastika
izmilia-prastika / gist:f89f6d53d992c056e75bc9283c42b501
Last active April 20, 2021 09:46
result of my journalctl -u elasticsearch
sudo journalctl -u elasticsearch
-- Logs begin at Mon 2021-02-08 10:38:18 PST, end at Tue 2021-04-20 02:20:23 PDT. --
Mar 30 02:10:32 ubuntu systemd[1]: Starting Elasticsearch...
Mar 30 02:12:00 ubuntu systemd[1]: elasticsearch.service: start operation timed out. Terminatin>
Mar 30 02:12:08 ubuntu systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Mar 30 02:12:08 ubuntu systemd[1]: Failed to start Elasticsearch.
Mar 30 02:27:13 ubuntu systemd[1]: Starting Elasticsearch...
Mar 30 02:28:28 ubuntu systemd[1]: elasticsearch.service: start operation timed out. Terminatin>
Mar 30 02:28:35 ubuntu systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Mar 30 02:28:35 ubuntu systemd[1]: Failed to start Elasticsearch.
@izmilia-prastika
izmilia-prastika / gist:eb63ece865bec4ee6ae311166b54520f
Created November 18, 2023 09:51
#!/bin/bash # Update the apt-get cache sudo apt-get update # Install PHP sudo apt-get install -y php # Install Apache sudo apt-get install -y apache2 # Copy the code from the repository sudo git clone https://github.com/brikis98/php-app.git /var/www/html/app # Start Apache sudo service apache2 start
#!/bin/bash
# Update the apt-get cache
sudo apt-get update
# Install PHP
sudo apt-get install -y php
# Install Apache
sudo apt-get install -y apache2
@izmilia-prastika
izmilia-prastika / gist:ccaabe78b05ace7c93663ec3cdff35d2
Created November 18, 2023 09:53
contoh konfigurasi untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP
#!/bin/bash
# Update the apt-get cache
sudo apt-get update
# Install PHP
sudo apt-get install -y php
# Install Apache
sudo apt-get install -y apache2
@izmilia-prastika
izmilia-prastika / gist:3be95360bbda913f0db8cd4607aec600
Created November 18, 2023 09:55
contoh konfigurasi untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP dengan Ansible
- name: Update the apt-get cache
apt:
update_cache: yes
- name: Install PHP
apt:
name: php
- name: Install Apache
apt:
@izmilia-prastika
izmilia-prastika / gist:617a0df5ac712ca3b1fb7d1c33599240
Created November 18, 2023 09:56
Contoh Ragam Server Tempating untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP
{
"builders": [{
"ami_name": "packer-example",
"instance_type": "t2.micro",
"region": "us-east-1",
"type": "amazon-ebs",
"source_ami": "ami-40d28157",
"ssh_username": "ubuntu"
}],
"provisioners": [{
@izmilia-prastika
izmilia-prastika / gist:f25ae8dd4f793874ac6b79b02fb08716
Created November 18, 2023 09:57
Contoh Ragam Server Provisioning untuk melakukan instalasi dan menjalankan web server dengan aplikasi PHP
resource "aws_instance" "app" {
instance_type = "t2.micro"
availability_zone = "us-east-1a"
ami = "ami-40d28157"
user_data = <<-EOF
#!/bin/bash
sudo service apache2 start
EOF
}
terraform {
required_providers {
heroku = {
source = "heroku/heroku"
version = "~> 5.0"
}
}
}
variable "example_app_name" {
@izmilia-prastika
izmilia-prastika / gist:5508996eb556677aad08bd541284cae1
Created November 19, 2023 05:32
Contoh Struktur Provider AWS
provider "aws" {
access_key = "${var.aws_access_key}"
secret_key = "${var.aws_secret_key}"
region = "${var.aws_region}"
}
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
}
@izmilia-prastika
izmilia-prastika / gist:dae5334daa30946a7528cb8b7167e1c2
Created November 19, 2023 06:37
Contoh Membangun Aplikasi Website Java di Azure
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.74.0"
}
}
}
###If you don't specify provider configuration, TF will use CLI as the default provider