Skip to content

Instantly share code, notes, and snippets.

View gaptekupdate's full-sized avatar

Muhammad Februriyanto gaptekupdate

View GitHub Profile
@gaptekupdate
gaptekupdate / Read Me First
Last active November 16, 2021 03:28
RunCloud OpenLitespeed Wordfence Bulk Add wordfence-waf.php Wordpress Plugin Rules in phpIniOverride section
Multiple Domain Bulk Add auto_prepend_file wordfence-waf.php rules in phpIniOverride section for Wordfence Plugin Running with OpenLiteSpeed webserver on RunCloud Web Panel.
1. Navigate to: /etc/lsws-rc/conf.d/
2. Create/Upload: bulkaddwf.php
3. Run Php CLI command from your ssh: php bulkaddwf.php
4. Reload OLS: /usr/local/lsws/bin/lswsctrl reload
5. Enjoy ^^v
# Do not edit this file
# Editing this file manually might break RunCloud System
[Unit]
Description=Elasticsearch
Documentation=http://www.elastic.co
Wants=network-online.target
After=network-online.target
[Service]
RuntimeDirectory=elasticsearch
Environment=ES_HOME=/usr/share/elasticsearch
Environment=ES_PATH_CONF=/etc/elasticsearch
#x86_64 processor march=native m64
cd /root;
sudo yum groupinstall -y "Development Tools"
sudo yum install -y git wget zlib zlib-devel pcre-devel google-perftools google-perftools-devel lua-devel GeoIP-devel
sudo yum install -y make gcc gcc-c++ wget git openssl-devel pcre-devel zlib-devel python python-devel gcc zlib perl libxml2 libxslt
sudo yum install -y autoconf automake libtool make cmake openssl openssl-devel pcre-devel build-essential libpcre3 libpcre3-dev zlib1g-dev unzip git patch
sudo yum install -y cmake gc libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel libatomic_ops-devel perl-ExtUtils-Embed
sudo yum install -y gcc-c clang libatomic_ops-devel pcre-devel openssl-devel libxml2-devel libxslt-devel gd-devel GeoIP-devel gperftools-devel perl-devel
sudo yum install -y build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev
yum install -y build-essential cmake clang
@gaptekupdate
gaptekupdate / gdpr.php
Created May 25, 2018 12:50
Blocking Website Access from GDPR Countries
<?php
/*
Blocking Website Access from GDPR Countries
Author: M.Februriyanto (fb.me/ebo78)
Version: 1.0.0 May 25, 2018
Requires: Cloudflare IP Geolocation - HTTP_CF_IPCOUNTRY - ISO 3166-1 Alpha 2 format
GDPR Country List by: https://gist.github.com/henrik/1688572
Function derivered from: https://etzelstorfer.com/en/check-country-eu-php/
*/