I hereby claim:
- I am azilber on github.
- I am koguma (https://keybase.io/koguma) on keybase.
- I have a public key ASAjG3PPoj8AHKAPGng0zvuZw87f7T4ZluIdkEfUObUXlwo
To claim this, I am signing this object:
#!/bin/bash | |
# chkconfig: 2345 99 10 | |
# description: Set Public IP from ElasticIP pool during instance startup | |
# processname: ipassign | |
# Provides: ipassign | |
# Required-Start: | |
# Required-Stop: | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: | |
# Short-Description: Set Public IP from ElasticIP pool during instance startup |
#!/bin/bash | |
P=/home/git/repositories | |
ls -altrh $P/ | |
echo -n "Directory to migrate: " | |
read D | |
// Convert CIDR to IPv4 range | |
func CIDRRangeToIPv4Range(cidr string) (ipStart string, ipEnd string, err error) { | |
var ip uint32 // ip address | |
var ipS uint32 // Start IP address range | |
var ipE uint32 // End IP address range | |
cidrParts := strings.Split(cidr, "/") |
I hereby claim:
To claim this, I am signing this object:
#version=DEVEL | |
# System authorization information | |
auth --enableshadow --passalgo=sha512 | |
# Use CDROM installation media | |
cdrom | |
# Use graphical install | |
graphical | |
# Run the Setup Agent on first boot | |
firstboot --enable | |
ignoredisk --only-use=sda,sdb |
[HP-spp] | |
name=HP Service Pack for ProLiant | |
baseurl=http://downloads.linux.hpe.com/SDR/repo/spp/RHEL/7/x86_64/current/ | |
enabled=1 | |
gpgcheck=0 | |
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ssp | |
[HP-mcp] | |
name=HP Management Component Pack for ProLiant | |
baseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/7/x86_64/current/ |
#!/bin/bash | |
# jnm 20140311 | |
TOTAL_AVAILABLE=$(df /vz | grep '/vz$' | awk '{ print $2 }') | |
vzlist -o ctid,numproc,status,ip,hostname,diskspace -s diskspace | awk ' | |
{ | |
printf $0 "\t" | |
if(NR==1) | |
{ | |
print "in G\tas % of host" | |
} |
CC = gcc | |
WARNINGS = -Wall | |
COMPILE = -pipe -O2 | |
#DEBUG = -ggdb | |
LD_OPT = -s | |
CFLAGS = $(DEBUG) $(WARNINGS) $(COMPILE) | |
SRCS = sshutout.c | |
OBJS = $(SRCS:.c=.o) |
#!/bin/sh | |
# | |
# chkconfig: 345 99 1 | |
# description: Start and stop script for sshutout | |
# | |
### BEGIN INIT INFO | |
# Provides: sshutout | |
# Required-Start: $local_fs $network +splash_late | |
# Required-Stop: | |
# Default-Start: 3 4 5 |
<source> | |
type tail | |
format /(?<c_ip>[\w\.]+):(?<c_port>\d+) \[(?<a_date>.+)\] (?<f_end>[\w-]+) (?<b_end>[\w-]+)\/(?<b_server>[\w-]+) (?<tw>\d+)\/(?<tc>\d | |
+)\/(?<tt>\d+) (?<bytes>\d+) (?<t_state>[\w-]+) (?<actconn>\d+)\/(?<feconn>\d+)\/(?<beconn>\d+)\/(?<srv_conn>\d+)\/(?<retries>\d+) (?< | |
srv_queue>\d+)\/(?<backend_queue>\d+)/ | |
time_format %d/%B/%Y:%H:%M:%S | |
path /var/log/haproxy/haproxy_access.log | |
pos_file /opt/fluentd/var/pos/haproxy_access.pos | |
tag haproxy.access | |
</source> |