Skip to content

Instantly share code, notes, and snippets.

View maprangzth's full-sized avatar

Komsan Kamsamur maprangzth

View GitHub Profile
@drolfe
drolfe / deb-firstboot-script.sh
Last active December 19, 2017 03:47
FirstBoot Script
#!/bin/bash
#Values set by foreman finish scritp..
H_NAME=
OS_NAME=
OS_MAJOR=
OS_MINOR=
IPV4=
NMASK=
GWAY=
@muffycompo
muffycompo / coova-chilli.spec
Created March 11, 2014 18:44
The SPEC file I use for packaging CoovaChilli as an RPM
Summary: Coova-Chilli is a Wireless LAN Access Point Controller
Name: coova-chilli
Version: 1.3.0
Release: 1
URL: http://www.coova.org/
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-root
@paulczar
paulczar / logstash-perf.md
Last active May 14, 2018 03:13
logstash performance deets

Logstash Performance Testing

Server Details

HP BL460

  • 48 Gb Memory
  • 2 x X5675 @ 3.07GHz
  • 2 x 10 gbps NIC
  • 2tb NetApp NFS volume for ES data
@aw
aw / gist:79c7a7cc12e93e165d144ec5bb8fc844
Last active May 16, 2018 07:13
yum-downloadonly disappeared or missing from CentOS 6

Hopefully this can save someone else some time

If you get the error message: "No Package matching 'yum-downloadonly'"

Well it's because the package was renamed in RHEL6, but CentOS 6 only recently removed it, so now you must refer to yum-plugin-downloadonly instead.

Snippet from here: https://access.redhat.com/solutions/10154

(RHEL5)
@aubreyja
aubreyja / firewall_rules.sh
Created January 14, 2013 23:23
Firewall rules for a webwork server
#!/bin/bash
# Delete all existing rules
iptables -F
# Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@oeegee
oeegee / Redis Cluster 설치 (3 Master 3 Slave)
Created November 22, 2017 12:47
Redis Cluster 설치 (3 Master/3 Slave)
개발서버에 Redis 를 구성해보자
Redis Cluster가 나온지 어언 1년이 넘었다.
이제 사용할만하다는 소문이 들린다.
구성 참조 : https://www.linode.com/docs/applications/big-data/how-to-install-and-configure-a-redis-cluster-on-ubuntu-1604
(Ubuntu 버전이지만, 그래도 괜찮아~)
http://redisgate.com/redis/configuration/persistence.php (한국어)
http://intro2libsys.com/focused-redis-topics/day-one/intro-redis-cluster
version: "3.4"
services:
zk1:
image: zookeeper:3.4.11
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "4"
ports:
@h0tw1r3
h0tw1r3 / syslog-ng.conf
Created October 22, 2017 11:57
Syslog-ng 3.6.4 configuration
@version:3.6
@include "scl.conf"
options {
flush-timeout(2000);
chain-hostnames(no);
use-dns(yes);
use-fqdn(no);
create-dirs(yes);
keep-hostname(yes);
@rocketraman
rocketraman / kafka.yaml
Created October 4, 2017 00:05
Kubernetes deployment and service descriptor for Kafka
apiVersion: v1
kind: Service
metadata:
name: kafka
labels:
app: kafka
tier: backend
spec:
# Lookup: dig -t srv _kafka._tcp.kafka.default.svc.cluster.local
ports:
@muffycompo
muffycompo / coovachilli-build-steps-ubuntu-16.10.txt
Last active September 25, 2018 02:27
Building CoovaChilli 1.4 on Ubuntu 16.10
apt-get update
apt-get install -y g++ automake autoconf libtool libltdl-dev gengetopt make cmake libssl-dev
git clone https://github.com/coova/coova-chilli
git checkout 1.4
./bootstrap