Skip to content

Instantly share code, notes, and snippets.

View boina-n's full-sized avatar

Nadjmou BOINA boina-n

  • Genopsys
  • Anywhere
  • 19:45 (UTC +04:00)
View GitHub Profile
@boina-n
boina-n / DnsDebugNotes.sh
Created October 22, 2017 16:04
DNS debug Notes
zone "toto-tr.fr.rt" {
type master;
masters { 20.20.20.20; };
file "slaves/db.toto-tr.fr.rt";
};
#Replace this :
(^[a-z0-9\-]+(\.[a-z0-9\-]+)*)
@boina-n
boina-n / GetLinuxInfo.sh
Created October 22, 2017 15:58
GetLinuxInfo.sh
#!/bin/bash
dir=/tmp/Results
rm -rf $dir
mkdir -p $dir
echo "Hostname : "
hostname
echo ""
ip addr show |awk '{ print $2 }' | grep ^[a-Z] |tr -d : | while read p ; do int=$(ip addr show $p | awk '/inet/ { print $2 }') ; echo "$p: $int "; done
@boina-n
boina-n / InfoBloxToBind.sh
Created October 22, 2017 15:56
Convert Infoblox zones to Bind Zones
#!/bin/bash
echo "#############################################################"
echo "#############################################################"
echo "## Infoblox to bind export script ##"
echo "## This script should be run on ##"
echo "## a server allowed transfer the zones ##"
echo "## the zones by transfer ##"
echo "#############################################################"
echo "#############################################################"
@boina-n
boina-n / InfoBloxToBind.sh
Created October 22, 2017 15:56
Convert Infoblox zones to Bind Zones
#!/bin/bash
echo "#############################################################"
echo "#############################################################"
echo "## Infoblox to bind export script ##"
echo "## This script should be run on ##"
echo "## a server allowed transfer the zones ##"
echo "## the zones by transfer ##"
echo "#############################################################"
echo "#############################################################"
@boina-n
boina-n / awk-one-liners.awk
Created October 22, 2017 14:52 — forked from xandkar/awk-one-liners.awk
HANDY ONE-LINE SCRIPTS FOR AWK
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE:
@boina-n
boina-n / Latest-pivnet-products.sh
Created October 19, 2017 07:30
check latest version of Pivotal products.
1. download Pivnet-cli : https://github.com/pivotal-cf/pivnet-cli/releases
$ om --target https://******--skip-ssl-validation --username ***** --password ***** staged-products
+-------------------------+-----------+
| NAME | VERSION |
+-------------------------+-----------+
| p-redis | 1.*.2 |
| p-rabbitmq | 1.*.7 |
| p-mysql | 1.*.3 |
| apm | 1.*.8 |
@boina-n
boina-n / cloud-config.yml
Created October 15, 2017 22:34
Cloud config with bid price support
azs:
- cloud_properties:
availability_zone: us-west-2a
name: z1
- cloud_properties:
availability_zone: us-west-2b
name: z2
- cloud_properties:
availability_zone: us-west-2c
name: z3
@boina-n
boina-n / cloud-config.txt
Created October 8, 2017 21:35
Cloud Config aws
azs:
- cloud_properties:
availability_zone: us-west-2a
name: z1
- cloud_properties:
availability_zone: us-west-2b
name: z2
- cloud_properties:
availability_zone: us-west-2c
name: z3
@boina-n
boina-n / Spring-cloud-services-debug.txt
Created October 5, 2017 20:57
Spring cloud services debug notes
bosh logs <Rmq-servers> <index>
bosh logs <cc-jobs> <index>
cf target -o system -s p-spring-cloud-services
cf logs spring-cloud-broker --recent
cf logs spring-cloud-broker-worker --recent
@boina-n
boina-n / http.s.regex.txt
Created October 5, 2017 20:54
regex http/https
^https?://(?:[^:@/]+(?::[^@/]+)?@)?(?:localhost|127\.\d+\.\d+\.\d+)(?::\d+)?(?:/.*)?$