-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.exowebrc
91 lines (76 loc) · 3.1 KB
/
.exowebrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
if [ -f /usr/sbin/bitlbee ] ; then
/usr/sbin/bitlbee -c $HOME/.bitlbee/bitlbee.conf
fi
################### Alias for Exoweb's work #############################
#alias gvim='gvim -geometry 156x55+1280+0'
# for laszlo configuration
#export JAVA_HOME=/home/vincent/bin/java/jdk1.5.0_03'
export JAVA_HOME='/usr/lib/jvm/java-1.5.0-sun-1.5.0.08'
export LPS_HOME=/usr/local/lps-3.1/Server/lps-3.1
#PATH="${PATH}:~/mytools:~/win32tools:/usr/local/lps-3.1/bin:/usr/local/Adobe/Acrobat7.0/bin:~/bin/KeePassX-0.2.2"
PATH="${PATH}:~/mytools:~/win32tools:/usr/local/lps-3.1/Server/lps-3.1/WEB-INF/lps/server/bin:/usr/local/Adobe/Acrobat7.0/bin:~/bin/KeePassX-0.2.2"
### use privoxy as proxy locally
#http_proxy=http://127.0.0.1:8118/
#HTTP_PROXY=$http_proxy
#export http_proxy HTTP_PROXY
export PRINTER=ExoAdmin
alias livebet_start="cd /home/vincent/work/livebet/src && ./nordicbetsite stop all && ./nordicbetsite start application_server && ./nordicbetsite start presentation_server && ./nordicbetsite start back_office_server && ./nordicbetsite start stats_server && ./nordicbetsite start livebet_bo && ./nordicbetsite start livebet_fo && cd -"
alias lb="cd /home/vincent/work/livebet/src"
#alias tomcat='sudo /usr/local/lps-3.1/Server/tomcat-5.0.24/bin/startup.sh'
function lb_start()
{
OLDDIR=$PWD
cd ${1:-$PWD}
if [ -n "$(ls *.pid)" ]; then
./nordicbetsite stop all
fi
./nordicbetsite start application_server && ./nordicbetsite start presentation_server && ./nordicbetsite start back_office_server && ./nordicbetsite start livebet_bo && ./nordicbetsite start livebet_fo && ./nordicbetsite start stats_server && ./nordicbetsite start livebet_bo_logger && ./nordicbetsite start livebet_fo_logger
cd $OLDDIR
}
function tomcat()
{
CMD=${1:-'-h'}
case $CMD in
start )
echo 'Start Tomcat ...'
sudo /usr/local/lps-3.1/Server/tomcat-5.0.24/bin/startup.sh
;;
stop )
echo 'Stop Tomcat ...'
sudo /usr/local/lps-3.1/Server/tomcat-5.0.24/bin/shutdown.sh
;;
-h|--help|* )
echo "$0 : start/stop tomcat"
echo " Usage: $0 start/stop"
;;
esac
}
function gen_nb_tags()
{
OLDDIR=$PWD
cd ${1:-$PWD}
echo "Generating tags ..."
find . -type d \( -name lib -o -iname mgs_poker -o -iname scripts -o -iname selenium -o -iname zope -o -iname stress \) -prune -o -type f -iname "*.py" -print | sed -e 's#^\./##p' | ctags -L -
echo "Generating cscope ..."
find . -type d \( -name lib -o -iname mgs_poker -o -iname scripts -o -iname selenium -o -iname zope -o -iname stress \) -prune -o -type f -iname "*.py" -print | sed -e 's#^\./##p' | cscope -b -i - -R
cd $OLDDIR
}
function startNor()
{
SERVERS=${*:-application_server back_office_server presentation_server}
for i in $SERVERS; do
./nordicbetsite restart $i
done
}
FETCHMAIL_CMD=$(which fetchmail)
if [ -n "$FETCHMAIL_CMD" ]; then
if [ ! -e ~/.fetchmail.pid ]; then
$FETCHMAIL_CMD
fi
fi
if [ -z "$(pgrep checkmail.py)" ]; then
if [ "$(hostname)" == 'vincent' ]; then
~/mytools/checkmail.py ~/Mail/exoweb/work &
fi
fi
# }}}