Skip to content

Instantly share code, notes, and snippets.

View linuxmalaysia's full-sized avatar
🏠
Working from home

Harisfazillah Jamel linuxmalaysia

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am linuxmalaysia on github.
  • I am linuxmalaysia (https://keybase.io/linuxmalaysia) on keybase.
  • I have a public key whose fingerprint is D10A 7BC3 6E37 4688 3025 F23A E674 713A 5CA7 60C8

To claim this, I am signing this object:

@scotthorn
scotthorn / DoIt.md
Last active January 2, 2017 01:56
Setting up Drupal 7 on AWS Ubuntu 14.04 with Nginx, Memcache, and Varnish
Config Untuk Listbot
Contoh diambil dari
https://github.com/dtag-dev-sec/listbot
1) Git clone masukkan dalam /etc/logstash
#!/bin/sh
# origin https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a
# logstash yaml "www.google.com": "known search engine"
# Choose from here https://github.com/StevenBlack/hosts
#HOSTS_RAW=https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
##### https://raw.githubusercontent.com/StevenBlack/hosts/master/data/malwaredomainlist.com/hosts
### first must using > and others using >> for pipe
##### first file
@linuxmalaysia
linuxmalaysia / logstash-config-example-searching-filebeat-index.txt
Created October 13, 2019 02:33
Example logstash configuration file. Tested using Logstash 7.4.0 and Filebeat as input and Elasticsearch. Terima Kasih Kepada Amir Haris Ahmad, Localhost Sdn Bhd # kerana izinkan saya gunakan servers ujian mereka di Digital Ocean # dan team beliau dengan berkongsi pengalaman dan pandangan mereka. # Untuk saya menguji bruteforce attack log kepada…
### Terima Kasih Kepada Amir Haris Ahmad, Localhost Sdn Bhd
### kerana izinkan saya gunakan servers ujian mereka di Digital Ocean
### dan team beliau dengan berkongsi pengalaman dan pandangan mereka.
###
### Untuk saya menguji bruteforce attack log kepada syslog dengan fail2ban
###
### Server telah dipasang dengan fail2ban dan SSH dibuka dengan port 22.
### SSH tidak membenarkan module password dan hanya digital cert.
###
### Filebeat telah digunakan untuk mengumpulkan log.
@linuxmalaysia
linuxmalaysia / Filebeat For Iptables Centos 7 And Iptables using UFW For Ubuntu 18.04.txt
Created May 7, 2020 04:35
Filebeat For Iptables Centos 7 And Iptables using UFW For Ubuntu 18.04
Filebeat For Iptables Centos 7 And Iptables using UFW For Ubuntu 18.04
1) Enable firewalld log
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/configuring_logging_for_denied_packets
firewall-cmd --get-log-denied
off
firewall-cmd --set-log-denied=all
@linuxmalaysia
linuxmalaysia / Demo use case: integrating a COVID-19 tracker API with the Elastic Stack plus story telling with Kibana.txt
Last active May 7, 2020 04:37
Demo use case: integrating a COVID-19 tracker API with the Elastic Stack plus story telling with Kibana
Demo use case: integrating a COVID-19 tracker API with the Elastic Stack plus story telling with Kibana
https://medium.com/@quoeamaster/use-case-integrating-a-covid-19-tracker-api-with-the-elastic-stack-plus-story-telling-with-kibana-8805cb67678
Create the pipeline in the Elasticsearch before start the filebeat.
=== Update for filebeat
filebeat.inputs:
- type: log
@linuxmalaysia
linuxmalaysia / Installing-And-Setup-Streamsets-Using-Podman-For-Centos-8.md
Last active November 14, 2020 00:28
Installing And Setup Streamsets Data Collector Using Podman For Centos 8

Installing And Setup Streamsets Using Podman For Centos 8

StreamSets Data Collector is open source software for building dataflows quickly and easily, spanning on-premises, multi-cloud and edge infrastructure.

It has an advanced and easy to use User Interface that allows data scientists, developers and data infrastructure teams easily create data pipelines in a fraction of the time typically required to create complex ingest scenarios.

To learn more, check out https://github.com/streamsets/datacollector

@linuxmalaysia
linuxmalaysia / MySQL-Directory-Move-Into-New-Partition.md
Created November 24, 2020 05:50
MySQL / MariaDB / Percona Server For MySQL Directory Move Into New Partition (Example /home)

MySQL Directory Move Into New Partition (Example /home)

Login as root or any user that NOT using /home stop mariadb service such as systemctl stop MariaDB

Make sure SELINUX is permissive mode. View file /etc/selinux/config

Step 1 - Copy /home Contents

To backup the contents of /home, do the following:

@linuxmalaysia
linuxmalaysia / clustercontrol-centos8-podman.txt
Created June 28, 2021 10:19
Cluster Control On Centos 8 Using Podman
Cluster Control On Centos 8 Using Podman
https://severalnines.com/download-clustercontrol-database-management-system
https://severalnines.com/docs/user-guide/ui.html#import-existing-server-cluster
https://severalnines.com/docs/installation.html
https://severalnines.com/product/clustercontrol/clustercontrol-community-edition