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 | |
# prerequisites | |
# aws-cli : brew install awscli | |
# jq : brew install jq | |
read -p "Enter ENV (account1 | account2 | account3 | account4): " targe_env | |
case "$targe_env" in | |
"account1") aws_account=<account1> |
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
<!-- MessageSource --> | |
<!-- /usr/local/conf/app/messages/messages_en_US.properties --> | |
<beans:bean id="messageSource" | |
class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> | |
<beans:property name="basename"> | |
<beans:value>file:/usr/local/conf/app/messages/messages</beans:value> | |
</beans:property> | |
<beans:property name="cacheSeconds" value="600" /> | |
</beans:bean> |
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
# Get Root | |
sudo su | |
# Download NMON archive | |
cd /tmp | |
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip | |
# Install unzip if you don't have | |
yum install unzip |
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
# Enabling | |
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist | |
# Disabling | |
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.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
kill -9 `pidof memcached` | |
killall memcached |