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 | |
HOMEMOUNT=$(mount | grep home | sed 's/ .*//' | sed 's#.*/##' ) | |
if [[ ! "$(eval lsmod | grep "^flashcache")" ]]; then | |
modprobe flashcache | |
fi | |
if [[ ! "$HOMEMOUNT" == "flashcache" ]]; then | |
umount /home |
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/env python3 | |
#=============================================================================== | |
# | |
# FILE: change_indent_length.py | |
# | |
# USAGE: cange_indent_length.py [-h] file_name old_tab_length new_tab_length | |
# | |
# DESCRIPTION: Change indent length, only change those at start of line | |
# | |
# AUTHOR: Michael D Dacre, [email protected] |
NewerOlder