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
${filecomment} | |
${includes} | |
#include <boost/test/unit_test.hpp> | |
using namespace std; | |
${namespace_begin} |
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 | |
############ check arguments ################# | |
if [ -z "$1" ] | |
then | |
echo "No argument supplied, please provide product name and build type. such as: ./renameAndBuild.sh aloft debug " | |
exit | |
fi | |
############ setting paths ################# |
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
mkdir src/com/fingi | |
mv src/com.fingi.csipsimple.src/com/fingi/ | |
find src/ -type f -print0 | xargs -0 sed -i 's/com.csipsimple./com.fingi.csipsimple./g' *.java | |
find res/ -type f -print0 | xargs -0 sed -i 's/com.csipsimple./com.fingi.csipsimple./g' *.xml |
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 | |
login="root" | |
pass="PASSWORD" | |
ip="MY_IP_ADDRESS" | |
publicip=$(wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//') | |
sshpass -p $pass ssh $login@$ip "iptables -I INPUT -j ACCEPT -s $publicip" | |
sshpass -p $pass ssh $login@$ip | |
#this script will log you in and then add your publip ip to the allowed list in iptables. | |
#necessary because http is blocked by iptables for security reason |
NewerOlder