Skip to content

Instantly share code, notes, and snippets.

View maprangzth's full-sized avatar

Komsan Kamsamur maprangzth

View GitHub Profile

Download CoovaChili from Github

On https://github.com/coova/coova-chilli/releases/tag/1.4

Install build dependencies

sudo apt install g++ automake autoconf libtool libltdl-dev gengetopt make cmake libssl-dev

Configure and make

./bootstrap

./configure --prefix=/usr --sysconfdir=/etc --enable-largelimits --enable-miniportal --enable-chilliredir --enable-layer3 --enable-multiroute --with-openssl --with-poll --enable-shared --enable-gardenext --enable-dhcpopt --enable-chillixml --enable-chilliproxy --enable-chilliradsec --enable-eapol --enable-extadmvsa --enable-uamdomainfile --enable-chilliscript --enable-pppoe

@maprangzth
maprangzth / coova-installation.txt
Created September 8, 2019 09:02 — forked from tcmsf/coova-installation.txt
Coova Chilli 1.4 installation Ubuntu
apt-get update
apt-get install -y g++ automake autoconf libtool libltdl-dev gengetopt make cmake libssl-dev libjson-c2 libjson-c-dev
git clone https://github.com/coova/coova-chilli
cd coova-chilli
git checkout 1.4
@maprangzth
maprangzth / harden.sh
Created August 16, 2019 07:39 — forked from ambud/harden.sh
HDP Kafka ZK Hardening script
#!/bin/bash
# Author: Ambud Sharma
# License: Apache 2.0
USER=$1
if [ -z $USER ]; then
USER="kafka"
fi
@maprangzth
maprangzth / gtk.css
Created May 3, 2019 04:09 — forked from jamesridgway/gtk.css
Reduce title bar size for applications in Gnome by creating ~/.config/gtk-3.0/gtk.css with the following contents
# Gnome 3 - based on https://blog.samalik.com/make-your-gnome-title-bars-smaller/
.header-bar.default-decoration {
padding-top: 3px;
padding-bottom: 3px;
font-size: 0.8em;
}
.header-bar.default-decoration .button.titlebutton {
padding: 0px;
}
@maprangzth
maprangzth / yum-list-available-environment-groups.sh
Created April 4, 2019 07:17
List yum groups (installed, available or available environment) on yum-based systems (RHEL Redhat Fedora CentOS etc.)
#!/bin/sh
yum grouplist | sed '/^Installed Groups:/,$d;/^Available Environment Groups:/,$!d;/^Available Environment Groups:/d;s/^[[:space:]]*//'
# env
export KAFKA_HOST="my.kafka.hostname"
export KAFKA_OPTS="-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf"
# create topics
kafka-topics --create --topic securing-kafka --replication-factor 1 --partitions 3 --zookeeper $KAFKA_HOST:2181
# producer acl
kafka-acls --authorizer-properties zookeeper.connect=$KAFKA_HOST:2181 --add --allow-principal User:kafkaclient --producer --topic securing-kafka
@maprangzth
maprangzth / kafka-essentials.md
Created November 30, 2018 06:20 — forked from dasunpubudumal/kafka-essentials.md
Stream Processing Essentials

Kafka Essentials

Role of ZooKeeper

  • A normal task which involve big data may take a magnitude of time when it is compared to the same task executed in a distributed environment.

  • ZooKeeper organizes the shared data with robust synchronization techniques. ZooKeeper itself is a distributed application providing services for writing a distributed application.

Common services provided by ZooKeeper

@maprangzth
maprangzth / google-fonts.sh
Created November 30, 2018 03:55 — forked from dyoungwd/google-fonts.sh
Install Google Fonts on fedora
# Original : Michalis Georgiou
# Modified : D4zzy for Fedora
_wgeturl="https://github.com/google/fonts/archive/master.tar.gz"
_gf="google-fonts"
# install wget
echo "Installing wget..."
sudo dnf install wget
@maprangzth
maprangzth / sysctl.conf
Created October 12, 2018 04:48 — forked from yegorg/sysctl.conf
ubuntu sysctl performance tuning
# Kernel sysctl configuration file for Linux
#
# Version 1.12 - 2015-09-30
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@maprangzth
maprangzth / openssl.md
Created October 3, 2018 02:29 — forked from NoMan2000/openssl.md
Common OpenSSL Commands with Keys and Certificates

Common OpenSSL Commands with Keys and Certificates

SSL Info

Generate RSA private key with certificate in a single command

openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar

Generate Certificate Signing Request (CSR) from private key with passphrase

openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar