Skip to content

Instantly share code, notes, and snippets.

View Banshee1221's full-sized avatar

Eugene de Beste Banshee1221

View GitHub Profile

This is my personal sync storage for my atom configuration.

@Banshee1221
Banshee1221 / run.sh
Last active June 2, 2017 12:08
vmware-tools-centos7
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
@Banshee1221
Banshee1221 / keybase.md
Created September 19, 2017 19:22
Keybase declaration

Keybase proof

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:

@Banshee1221
Banshee1221 / pgs_stat.sh
Created March 14, 2018 08:00
Ceph PG Summary Script
# 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 {
@Banshee1221
Banshee1221 / dns_update.py
Created October 4, 2018 12:36
Simple DDNS add/update/remove script
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',
@Banshee1221
Banshee1221 / 00-maas-00-infiniband-c6100.sh
Last active May 11, 2023 14:00
This script will update the Mellanox MT25408A0-FCC-QI (PSID: DEL09A0000009) and install OFED on Ubuntu 18.04
#!/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