Skip to content

Instantly share code, notes, and snippets.

View amanualt's full-sized avatar

amanu alatibi amanualt

  • Mamikos
  • Yogyakarta
View GitHub Profile
# Apa itu Orcinus?
# Fitur-fitu Orcinus
-
-
-
-
-
# Install
# Create service
@amanualt
amanualt / DOCKER.md
Last active November 14, 2017 02:35

Docker

Docker adalah platform yang digunakan untuk meringankan kinerja mesin. Operator menggunakan docker untuk menjalankan dan memanage aplikasi dalam satu wadah (container) yang ringan. Perusahaan menggunakan docker untuk membangun jaringan yang lebih cepat, dan lebih aman.

Istilah – istilah di dalam Docker

Docker Images

Docker image merupakan dasar template untuk docker container, sebuah image biasanya berisi OS maupun aplikasi yang telah diinstall dan telah jadi. Image ini digunakan untuk menjalankan container, di docker index terdapat banyak image yang bisa kita pilih dan kita gunakan sebagai base image.

Docker Container

Docker container sendiri merupakan sebuah image yang dapat dikemas dan dibaca tulis, container berjalan diatas image. Pada setiap perubahan yang disimpan pada container akan menyebabkan terbentuknya layer baru di atas base image. Kita dapat melakukan instalasi aplikasi didalamnya dan melakukan penyimpanan.

Docker Registry

Docker registri merupakan repositori dist

@amanualt
amanualt / Set grub cli
Created June 3, 2017 09:38
/etc/default/grub
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=1
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text"
GRUB_CMDLINE_LINUX="initrd=/install/initrd.gz"
@amanualt
amanualt / Vagrantfile
Created July 20, 2017 16:39
install centos on vagrant
Vagrant.configure(2) do |config|
#config.vm.box = "centos/7"
#config.vm.provision :shell, :path => "bootstrap.sh"
config.vm.define "lab1" do |m|
m.vm.box = "centos/7"
m.vm.network "private_network", ip: "192.168.7.11"
m.vm.provision "shell", inline: "hostnamectl set-hostname lab1"
m.vm.provision "shell", inline: "cd /vagrant;sudo make repo;sudo yum install -y ntpdate ntp;sudo systemctl enable ntpd;sudo ntpdate id.pool.ntp.org;sudo service ntpd start"
m.vm.provision :shell, :inline => "sudo rm /etc/localtime && sudo ln -s /usr/share/zoneinfo/Asia/Jakarta /etc/localtime", run: "always"
end
@amanualt
amanualt / centos7.sh
Last active November 8, 2017 08:55 — forked from yyang/centos7.sh
centos 7 pptpd firewalld
#!/bin/sh
#
# pptpd installation script on my own CentOS 7 box.
# inspired by: https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7
# and http://unix.stackexchange.com/questions/150837/redhat-centos-7-firewalld-best-practice-for-pptp-or-l2tp-ipsec-rules
#
# Author: 2015 Steve Yang <me@iyyang.com>
# The script comes with ABSOLUTELY NO WARRANTY.
@amanualt
amanualt / ELK.md
Last active May 29, 2023 10:21
Elasticsearch, Logstash, Kibana, Centos 7, Firewalld

Install ELK(Elasticsearch, Logstatsh, and Kibana) on Centos 7

Install java 1.8

  • download and install java
cd /opt
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jre-8u102-linux-x64.rpm"
rpm -Uvh jre-8u102-linux-x64.rpm
@amanualt
amanualt / splunk.md
Last active December 20, 2021 12:59
splunk centos7 firewalld

Install Splunk

Create a Splunk User

  • I created a user to run this application and created an application folder for the installation
# groupadd splunk
# useradd -d /opt/splunk -m -g splunk splunk
# su - splunk
@amanualt
amanualt / tugas-tcc10.md
Last active December 5, 2017 05:52
kelompok

Tugas kolaborasi github

Buatlah kelompok maksimal 3 orang per kelompok

nama repository teori-tcc10

masing" tugas:

  • 2 kolaborator
  • 1 upstream

rincian tugas

  • 2 kolaborator clon github milik upstream secara bersamaan
@amanualt
amanualt / art.sh
Created December 16, 2017 18:08
ncmpcpp
#!/bin/bash
#put this file to ~/.ncmpcpp/
MUSIC_DIR=/home/user/Music/ #path to your music dir
COVER=/tmp/cover.jpg
function reset_background
{
1. Stop mysql:
systemctl stop mysqld
2. Set the mySQL environment option
systemctl set-environment MYSQLD_OPTS="--skip-grant-tables"
3. Start mysql usig the options you just set
systemctl start mysqld
4. Login as root