This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[local|localrc]] | |
#----------------------------- | |
# Common congigurations | |
#----------------------------- | |
USE_NEUTRON=True | |
#NOVA_BRANCH=${NOVA_BRANCH:-milestone-proposed} | |
#SWIFT_BRANCH=${SWIFT_BRANCH:-milestone-proposed} | |
#GLANCE_BRANCH=${GLANCE_BRANCH:-milestone-proposed} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d-i partman-auto/disk string /dev/cciss/c0d0 /dev/cciss/c0d1 | |
d-i partman-auto/method string lvm | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-md/device_remove_md boolean true | |
d-i partman-lvm/confirm boolean true | |
d-i partman-auto/purge_lvm_from_device boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto/choose_recipe select boot-root | |
d-i partman-auto/purge_lvm_from_device boolean true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
net.ipv4.tcp_window_scaling = 1 | |
net.ipv4.tcp_sack = 1 | |
net.ipv4.tcp_fack = 1 | |
net.core.rmem_max = 134217728 | |
net.core.wmem_max = 134217728 | |
net.ipv4.tcp_rmem = 4096 87380 67108864 | |
net.ipv4.tcp_wmem = 4096 65536 67108864 | |
net.core.netdev_max_backlog = 250000 | |
net.ipv4.tcp_mtu_probing=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET _search | |
{ | |
"size": 0, | |
"aggs": { | |
"2": { | |
"terms": { | |
"field": "sflow_ipv4_src", | |
"size": 10, | |
"order": { | |
"1": "desc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Creating the certs from pfx | |
openssl pkcs12 -nocerts -in ssl.pfx -out ssl.key -nodes | |
openssl pkcs12 -nokeys -clcerts -in ssl.pfx -out ssl.cer -nodes | |
openssl pkcs12 -nokeys -cacerts -in ssl.pfx -out ssl.crt -nodes | |
#Checking the certs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is really just notes Note an actual bash script for now | |
Note the below mappings for the DL380 G7 | |
eth0 0000:03:00.0 | |
eth1 0000:03:00.1 | |
eth2 0000:04:00.0 | |
eth4 0000:04:00.1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ceph osd lost 16 --yes-i-really-mean-it | |
ceph osd crush remove osd.16 | |
ceph auth del osd.16 | |
ceph osd rm 16 | |
ceph osd create | |
ceph-osd -i 16 --mkfs --mkkey | |
ceph auth add osd.16 osd 'allow *' mon 'allow rwx' -i /var/lib/ceph/osd/ceph-16/keyring | |
ceph osd crush add osd.16 0.27 root=default host=node-118 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: form_disk | |
### END INIT INFO | |
PATH=/sbin:/bin:/usr/sbin:/usr/bin | |
case "$1" in | |
start) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stmfadm create-hg blade07 | |
stmfadm add-hg-member -g blade07 eui.0002c9030055e715 eui.0002c9030055e716 | |
root@ssd-san:~# stmfadm list-hg -v | |
Host Group: blade07 | |
Member: eui.0002C9030055E716 | |
Member: eui.0002C9030055E715 | |
root@ssd-san:~# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'json' | |
require 'elasticsearch' | |
#My complex ES query, Basically detects port scanning via our network sflow data | |
json_search = '{ | |
"query": { | |
"filtered": { | |
"query": { | |
"query_string": { | |
"query": "*", |
OlderNewer