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
#Create a custom yml colour scheme for nano | |
sudo tee /usr/share/nano/yaml.nanorc <<EOF >> /dev/null | |
# Supports files | |
syntax "YAML" "\.ya?ml$" | |
## Keywords | |
icolor red "^(FROM|MAINTAINER|RUN|CMD|LABEL|EXPOSE|ENV|ADD|COPY|ENTRYPOINT|VOLUME|USER|WORKDIR|ONBUILD)[[:space:]]" |
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 | |
echo "Updating wordpress" | |
wp core update && wp plugin update --all && wp theme update --all && wp core language update |
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/sh | |
# Reset Software Update Catalog to defaults | |
# Author: L. Sheed | |
# Deprecated warning can be ignored | |
/usr/bin/sudo defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL | |
/usr/bin/sudo defaults delete com.apple.SoftwareUpdate CatalogURL | |
/usr/bin/sudo softwareupdate --clear-catalog |
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/sh | |
# Fix right click menu slowdown delay on OSX | |
# Author: L. Sheed | |
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r -f -v -domain local -domain user -domain system |
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/sh | |
# OS X DNS flusher for all OS X versions > 11 | |
# Author: L. Sheed | |
sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache | |
/usr/bin/say "DNS, she is flushed" |
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/sh | |
# OS X DNS flusher for all OS X versions > 11 | |
# Author: L. Sheed | |
sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache |
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 | |
# Ensure docker is updated, and dangling / unused images are purged | |
# Restarts containers when done. | |
# Author: L. Sheed | |
# Delete all dangling (unused) images | |
docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi |