This is my personal sync storage for my atom configuration.
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
rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub | |
mkdir -p /etc/yum.repos.d/ | |
cat >/etc/yum.repos.d/vmware-tools.repo <<EOL | |
[vmware-tools] | |
name = VMware Tools | |
baseurl = http://packages.vmware.com/packages/rhel7/x86_64/ | |
enabled = 1 | |
gpgcheck = 1 | |
EOL |
I hereby claim:
- I am banshee1221 on github.
- I am eugenedb (https://keybase.io/eugenedb) on keybase.
- I have a public key ASClesWsImoGGMN8m76LBYPKrHZTeI-RfPoLntv6lNmFowo
To claim this, I am signing this object:
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
# Laurent Barbe | |
# http://cephnotes.ksperis.com/blog/2015/02/23/get-the-number-of-placement-groups-per-osd | |
ceph pg dump | awk ' | |
BEGIN { IGNORECASE = 1 } | |
/^PG_STAT/ { col=1; while($col!="UP") {col++}; col++ } | |
/^[0-9a-f]+\.[0-9a-f]+/ { match($0,/^[0-9a-f]+/); pool=substr($0, RSTART, RLENGTH); poollist[pool]=0; | |
up=$col; i=0; RSTART=0; RLENGTH=0; delete osds; while(match(up,/[0-9]+/)>0) { osds[++i]=substr(up,RSTART,RLENGTH); up = substr(up, RSTART+RLENGTH) } | |
for(i in osds) {array[osds[i],pool]++; osdlist[osds[i]];} | |
} | |
END { |
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
import argparse | |
import subprocess | |
import os | |
DNS_server = "x.x.x.x" | |
DNS_zone = "zone_name.com" | |
DNS_key_fullpath = "/path/to/.private_file" | |
parser = argparse.ArgumentParser(description='Add/Modify or remove DNS entries') | |
parser.add_argument('-r', |
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/bash | |
# --- Start MAAS 1.0 script metadata --- | |
# name: Infiniband FW and SW prep | |
# parallel: instance | |
# may_reboot: True | |
# tags: infiniband | |
# type: commissioning | |
# for_hardware: pci:15B3:673C |