Skip to content

Instantly share code, notes, and snippets.

View zufardhiyaulhaq's full-sized avatar
:octocat:
Hi

Zufar Dhiyaulhaq zufardhiyaulhaq

:octocat:
Hi
View GitHub Profile
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 443
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
apiVersion: ngrok.com/v1alpha1
kind: Ngrok
metadata:
name: helloworld-ngrok
namespace: helloworld
spec:
# protocol used, currently support http & tcp
# tcp is less tested, please create issue
# default is http
protocol: http
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: helloworld-ef
namespace: helloworld
spec:
workloadSelector:
labels:
app: helloworld
version: v1
---
apiVersion: v1
kind: Namespace
metadata:
name: nginx-example
labels:
app: nginx
---
kind: PersistentVolumeClaim
---
apiVersion: v1
kind: Namespace
metadata:
name: nginx-example
labels:
app: nginx
---
apiVersion: apps/v1
package com.bootcamp.battleship;
import java.util.Arrays;
public class Map {
private String[][] map;
private int grid;
public Map(int grid) {
int minArray = 1;
package com.bootcamp.battleship;
import java.util.ArrayList;
public class Player {
public static final String SHIP_VALUE = "B";
public Map map;
private String name;
private ArrayList<Coordinate> missile = new ArrayList<Coordinate>();
filter {
if "modsecurity" in [tags] {
###########################
##### start of filter #####
###########################
##### section split #####
ruby {
@zufardhiyaulhaq
zufardhiyaulhaq / modsecurity_filter.conf
Created November 19, 2019 03:32
Logstash ModSecurity Filter
filter {
if "modsecurity" in [tags] {
###########################
##### start of filter #####
###########################
##### section split #####
ruby {
// DHT
#include <dht.h>
// Wifi
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
// MQTT
#include <PubSubClient.h>