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 | |
rm ~/Library/Preferences/com.apple.screensaver.plist | |
/usr/libexec/PlistBuddy -c "Add :askForPassword integer 1" ~/Library/Preferences/com.apple.screensaver.plist | |
/usr/libexec/PlistBuddy -c "Add :askForPasswordDelay integer 60" ~/Library/Preferences/com.apple.screensaver.plist |
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
sudo launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist | |
sudo rm -r /Library/Caches/CrashPlan/* | |
sudo launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist |
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 | |
# | |
SOLR_HOME="/srv/tomcat/rpsolr/solr" | |
for INDEX_DIR in `/bin/find ${SOLR_HOME} -type d -name index -exec dirname {} \;`; do | |
CORE=`/bin/basename ${INDEX_DIR}` | |
/bin/grep "<core name=\"${CORE}\"" ${SOLR_HOME}/solr.xml > /dev/null | |
if [ $? != 0 ]; then | |
echo "Removing datadir for non-existent core ${CORE}" |
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
git clone git@git:puppet.git | |
cd puppet | |
git checkout -b mybrokenbranch | |
echo "this line breaks everything" >> manifests/site.pp | |
git commit -am 'Intentionally breaking things' | |
git push origin mybrokenbranch |
NewerOlder