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/env python | |
'''Run fstrim in chunks and sleep in between | |
''' | |
from __future__ import print_function, division | |
import os, sys, argparse, time, string, re, logging | |
from datetime import datetime | |
from random import random | |
from subprocess import check_output | |
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
from __future__ import division | |
import sys | |
from glob import glob | |
from collections import OrderedDict | |
import numpy as np | |
from nibabel.nicom import dicomwrappers | |
from bitarray import bitarray | |
import dicom |
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
# Provides access to Mellanox 'mstflint' program which can be used to manage | |
# the firmware on their Infiniband cards. | |
from subprocess import check_output as _check_output | |
from subprocess import CalledProcessError | |
from salt.utils.decorators import depends | |
try: | |
_check_output(['which', 'mstflint']) | |
HAS_MSTFLINT = 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
reactor: | |
- 'minion_start': | |
- /srv/reactor/on_start.sls |
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
from __future__ import division | |
import sys | |
import numpy as np | |
import nibabel as nb | |
try: | |
range = xrange | |
except NameError: | |
pass |