https://javascriptweblog.wordpress.com/2011/05/31/a-fresh-look-at-javascript-mixins/
Monthly Archives: May 2016
quick note on auto start script in
make sure the owner is root
make sure to run: sudo chkconfig –add <service name>
A quick way to enable http access to vm
Run the following commands:
iptables -I INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT
To make the changes persist, go to /etc/sysconfig/ and add to the following line to iptables:
-A INPUT -i eth1 -p tcp -m tcp --dport 80 -j ACCEPT
Then, restart the webserver:
service httpd restart
And now you can access out of VirtualBox.
get git clone work behind proxy
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
If you are using cntlm, it would be
git config --global http.proxy localhost:3128
3128 is the port you specify cntlm is using
config EMS for preparation of BPM server configuration
In the Enterprise Message Service server console, set permissions for the Administrator servers.
In the following commands, replace username and password with the username and password values appropriate for each bus.
Messaging Bus
delete queue >
delete topic >
create user username “Description of the user” password=password
create queue AMX_SV.>
grant queue AMX_SV.> user=username create, delete, modify, send, receive
Notification Bus, which propagates status messages between Administrator, hosts, and nodes
create topic EMSGMS.>
grant topic EMSGMS.> user=username create, modify, subscribe, publish
grant topic $sys.monitor.connection.* user=username subscribe
grant admin user=username view-connection, view-server
create topic AMX_MGMT.>
grant topic AMX_MGMT.> user=username create, modify, subscribe, publish
create queue AMX_MGMT.>
grant queue AMX_MGMT.> user=username create, delete, modify, send, receive
Management Bus, which handles the internal Administrator queues, currently grouped with the Notification Bus
create queue com.tibco.amf.admin.deploymentServerQueue.>
grant queue com.tibco.amf.admin.deploymentServerQueue.> user=username create, delete, send, receive
Common Logging and Payload Bus
grant queue cl_logservice_queue.physical user=username send, receive
grant queue cl_payload_queue.physical user=username send, receive
Monitoring Bus
grant queue amx.governance.stats user=username send, receive
grant queue amx.governance.internal.stats user=username send, receive
cntlm auto start script
#!/bin/sh
# chkconfig: 345 99 9
# description: cntlm auto start-stop script.
#
OWNER=root
if [ ! -f /usr/sbin/cntlm ]
then
echo “cntlm startup: cannot start”
exit
fi
case “$1” in
‘start’)
# Start cntlm
su $OWNER -c “/usr/sbin/cntlm -c /etc/cntlm.conf > /dev/null”
touch /var/lock/subsys/run_cntlm
;;
esac
ems auto start script
#!/bin/sh
# chkconfig: 345 98 10
# description: EMS auto start-stop script.
#
# Set TIBCO_HOME to the directory where the software is installed
#
# Set OWNER to the user id of into which EMS was installed
TIBCO_HOME=/opt/tibco/ems/8.2/
OWNER=bpmadm
if [ ! -f $TIBCO_HOME/bin/tibemsd64.sh ]
then
echo “EMS startup: cannot start”
exit
fi
case “$1” in
‘start’)
# Start EMS
# Remove “&” if you don’t want startup as a background process.
cd $TIBCO_HOME/bin
su $OWNER -c “./tibemsd64” &
touch /var/lock/subsys/ems
;;
‘stop’)
# Stop EMS
cd $TIBCO_HOME/bin
su $OWNER -c “./shutdown.sh”
rm -f /var/lock/subsys/ems
;;
esac