This file contains hidden or 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 | |
KEY="temp..." | |
echo -n "Number of physical disks this system's RAID controller contains: " | |
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | egrep '^(Adapter|Product Name|RAID Level Size State|Number Of Drives|Physical Disk|Raw Size|Link Speed|Media Type|Drive Temperature|Slot Number):' | grep 'Raw Size' | wc -l | |
/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | egrep '^(Adapter|Product Name|RAID Level Size State|Number Of Drives|Physical Disk|Raw Size|Link Speed|Media Type|Drive Temperature|Slot Number):' | |
echo |
This file contains hidden or 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/env python | |
import msgpack | |
import sys | |
try: | |
while True: | |
line = sys.stdin.readline().strip('\n') | |
try: | |
print msgpack.unpackb(line) |
This file contains hidden or 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 flattens a JSON file or a dictionary with nested lists and/or dictionaries. | |
The output is a flattened dictionary that use dot-chained names for keys, | |
based on the dictionary structure. This allows for reconstructing the JSON | |
structure or converting it to other formats without loosing any structural | |
information. | |
""" | |
__author__ = "Stas Alekseev" | |
__version__ = '0.1' |
This file contains hidden or 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
# Cobbler generated configuration file for dnsmasq | |
# $date | |
# | |
no-poll | |
enable-dbus | |
# Disables DNS functionality | |
port=0 | |
log-dhcp | |
read-ethers |
This file contains hidden or 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
# Name the components on this agent | |
a1.sources = r1 | |
a1.sinks = k1 | |
a1.channels = c1 | |
# Describe/configure the source | |
a1.sources.r1.type = spooldir | |
a1.sources.r1.spoolDir = ~/source | |
a1.sources.r1.fileHeader = true | |
a1.sources.r1.basenameHeader = true |
This file contains hidden or 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
#!ipxe | |
set base-url http://alpha.release.core-os.net/amd64-usr/current | |
kernel ${base-url}/coreos_production_pxe.vmlinuz sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDLFxjbgAC1xKhi/mEMyHe2z1sqw6stCxYfhT6pcdtpKyE2HLPaJKvNPJR2sKVfL2hlljt7n6KSHxo6csy/WPTDCvJhGAj1dbhOuu0ChUoU+bOin90yEnA5zW1s/etqLwq9os1HOpxQZhcEwQPTggSyGc3JBkkvBNC3l4Q768hQpzeZyaZ30wRAGuem+qMJ2FnFtE2MnAUwcKXdRQVYD+KnxudC1Xc9zOAaugUmHcX6es6zWqmLn+rFZtdvnnMcK+OnO6oP+Lmi63c3hmvGz5KtP3hf8Uj3PQ2SneG7zS1beik+RBkvNSkCyxxbc9LF38c+xL7elHLb+UTdfsnYcMz" | |
initrd ${base-url}/coreos_production_pxe_image.cpio.gz | |
boot |
This file contains hidden or 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 | |
Script_Info = { | |
'base repo location' => 'cobbler/ks_mirror/OL6.5-x86_64', | |
'base repo title' => 'OL6.5', | |
'updates repo location' => 'LocalRepo/ol-6.5-updates', | |
'updates repo title' => 'OL6.5-updates', | |
'repo file dir' => '/etc/yum.repos.d', | |
'new version string' => 'Oracle Linux Server release 6.4', |
This file contains hidden or 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 | |
# This script will monitor another NAT instance and take over its routes | |
# if communication with the other instance fails | |
# NAT instance variables | |
# Other instance's IP to ping and route to grab if other node goes down | |
NAT_ID=i-5bf2250b | |
NAT_RT_ID=rtb-f0b07695 | |
# My route to grab when I come back up |
NewerOlder