Skip to content

Instantly share code, notes, and snippets.

amanu alatibi amanualt

Block or report user

Report or block amanualt

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
View config_server.md

#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
View nginx.sh
#/bin/bash
#install nginx
apt install -y dpkg-dev build-essential \
zlib1g-dev \
libpcre3 \
libpcre3-dev \
unzip \
python-software-properties \
software-properties-common \
libpcre3 \
View password_mysql_centos.sh
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
View art.sh
#!/bin/bash
#put this file to ~/.ncmpcpp/
MUSIC_DIR=/home/user/Music/ #path to your music dir
COVER=/tmp/cover.jpg
function reset_background
{
View tugas-tcc10.md

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 Oct 10, 2019
splunk centos7 firewalld
View splunk.md

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 Sep 30, 2019
Elasticsearch, Logstash, Kibana, Centos 7, Firewalld
View ELK.md

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 Nov 8, 2017 — forked from yyang/centos7.sh
centos 7 pptpd firewalld
View centos7.sh
#!/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 / Vagrantfile
Created Jul 20, 2017
install centos on vagrant
View Vagrantfile
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
You can’t perform that action at this time.