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/bash | |
# parse echo command using Perl with | |
# many calls to the "${RANDOM}" internal bash function | |
# redirect command to a bash session | |
bash<<<$( | |
perl -e ' | |
print "echo "; | |
print "\$\{RANDOM\}"'x40 | |
) |
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/bash | |
# controlling a screen session from the terminal | |
screen_name="fab_session_${RANDOM}" # Generate unique screen session name | |
screen -S ${screen_name} -d -m # Open detached screen session | |
# Send commands to the screen session | |
screen -S ${screen_name} -p 0 -X stuff "echo \'hello world\!\'^M" | |
screen -S ${screen_name} -p 0 -X stuff "echo -n \'Still here, \!\'^M" | |
screen -S ${screen_name} -p 0 -X stuff "echo -n \' Still selling real fake doors\!\'^M" |
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 | |
''' | |
MegaPy - MegaCLI wrapper | |
''' | |
import os | |
import subprocess | |
import argparse | |
# import sh | |
__version__ = 'MegaPy v.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
#!/usr/bin/python | |
''' | |
MegaPy - MegaCLI wrapper | |
The Python wrapper is an attempt to make RAID management easier | |
for the MegaRAID line of RAID devices. | |
MegaRAID and MegaCLI are currently supported by Broadcom. | |
LSI Documentation on MegaCLI: |
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/python | |
''' | |
MegaPy - MegaCLI wrapper | |
''' | |
import sh | |
import os | |
import subprocess | |
import argparse | |
__version__ = 'MegaPy v.1' |
NewerOlder