Skip to content

Instantly share code, notes, and snippets.

@sametsazak
sametsazak / abc
Created November 30, 2020 07:02
abc
That&#8217;s the idea <a href="http://bamadesigner.com">Rachel Carden</a> is proposing with <a href="http://wpcampus.org/">WordCampus</a>. The idea started off as a tweet but quickly gained momentum with others in the community.</p>\n<blockquote class="twitter-tweet" width="550"><p lang="en" dir="ltr">Ooh. Dream with me:<script>alert('test');</script> "<a href="https://twitter.com/hashtag/WordCampus?src=hash"><script>alert('test');</script>#WordCampus</a>: A WordCamp for folks using <a href="https://twitter.com/hashtag/WordPress?src=hash">#WordPress</a> in Higher Education." I like it.<script>alert('test');</script> <a href="https://twitter.com/hashtag/heweb?src=hash">#heweb</a> <a href="https://t.co/m1zEkpkP4B">https://t.co/m1zEkpkP4B</a></p>\n<p>&mdash; Rachel Carden (@bamadesigner) <a href="https://twitter.com/bamadesigner/status/628324358126235648">August 3, 2015</a></p></blockquote>\n<p></p>\n<p>WordCampus is an event that would cover topics such as, how to manage a large-scale network of faculty blogs,
{
"data": [
{
"x": [
"192.121.166.207",
"192.121.166.202",
"192.121.166.217"
],
"y": [
20,
input {
tcp {
port => 5000
type => syslog
}
}
filter {
if [type] == "syslog" {
grok {
input {
udp {
port => 5000
type => syslog
}
}
filter {
if [type] == "syslog" {
grok {
input {
beats {
port => @@port@@
}
}
@@input@@
filter {
if [type] == "@@type@@" {
grok {
match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}" }
add_field => [ "received_at", "%{@timestamp}" ]
add_field => [ "received_from", "%{host}" ]
}
date {
match => [ "syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss" ]
@sametsazak
sametsazak / gist:e82a521089a2a9e88c684fc0578a6d86
Created April 24, 2017 01:49
Enable tap-to-click when using i3
xinput --set-prop "AlpsPS/2 ALPS DualPoint TouchPad" "libinput Tapping Enabled" 1
@sametsazak
sametsazak / suricata-init
Created April 7, 2017 00:39
suricata init
#!/bin/bash
#
# Init file for suricata
#
#
# chkconfig: 345 52 48
# description: Network Intrusion Detection System
#
# processname: suricata-enp0s3
# pidfile: /var/run/suricata-enp0s3.pid
%YAML 1.1
---
# Suricata configuration file. In addition to the comments describing all
# options in this file, full documentation can be found at:
# https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Suricatayaml
# Number of packets preallocated per thread. The default is 1024. A higher number
# will make sure each CPU will be more easily kept busy, but may negatively
@sametsazak
sametsazak / install_suricata.sh
Created March 11, 2017 12:39 — forked from gretel/install_suricata.sh
install suricata on openbsd-current https://suricata-ids.org
#!/bin/sh
## adopted from https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Basic_Setup
doas pkg_add gcc git libtool pcre jansson libmagic libyaml
## version strings might change like patchlevel and stuff
doas pkg_add libnet-1.1.2.1p3v0 autoconf-2.69p2 automake-1.14.1p0
cd
git clone --depth 1 git://phalanx.openinfosecfoundation.org/oisf.git
cd oisf
git clone --depth 1 https://github.com/OISF/libhtp.git -b 0.5.x
export AUTOCONF_VERSION=2.69