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 | |
SOURCE_URI='http://10.251.76.43:9200' | |
DEST_URI='http://localhost:9200' | |
declare -a indexes=(gallery linklist module pageversion poll standardmodule styles video) | |
echo "Getting mappings from: $SOURCE_URI" | |
for index in ${indexes[@]} |
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
#list top 10 big files | |
index_file=$(ls .git/objects/pack/pack-*.idx) | |
for x in $(git verify-pack -v $index_file| sort -k 3 -n | tail -10); do | |
git rev-list --objects --all | grep $x | |
done | |
#remove all war | |
git filter-branch -f --index-filter 'git rm -rf --cached --ignore-unmatch *.war' -- --all |
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
set mailserver localhost | |
set daemon 120 with start delay 240 | |
set logfile syslog facility log_daemon | |
set httpd port 2812 | |
allow localhost | |
set alert [email protected] | |
check host internet with address 80.254.111.254 | |
if failed icmp type echo count 5 with timeout 30 seconds |