Skip to content

Instantly share code, notes, and snippets.

View amanualt's full-sized avatar

amanu alatibi amanualt

  • Mamikos
  • Yogyakarta
View GitHub Profile

#Install nginx pagespeed naxsi add-apt-repository ppa:nginx/stable

hilangkan semua tanda pagar di depan

vim /etc/apt/sources.list.d/nginx-ubuntu-stable-xenial.list
apt-get update
cd /tmp
apt install dpkg-dev
apt build-dep nginx-extras nginx-common
apt-get source nginx-extras
#/bin/bash
#install nginx
apt install -y dpkg-dev build-essential \
zlib1g-dev \
libpcre3 \
libpcre3-dev \
unzip \
python-software-properties \
software-properties-common \
libpcre3 \
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
@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
{
@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 / 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 / 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 / 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 <[email protected]>
# The script comes with ABSOLUTELY NO WARRANTY.
@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