netstat -lntp
The undocumented 't' option will cause netstat to show server sockets.
netstat -lntp
Team Explorer -> Source Control (double click) -> Workspaces (dropdown) -> Workspaces ...
Edit ... -> Working Folders
mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE]
mysqldump -u myusername -h myhost -p --single-transaction mydbname | gzip > mybackupfile.20100803.sql.gz &
mysqldump -ux -px database | ssh me@newhost "mysql -ux -px database"
=(ROUNDDOWN(A10116,0) / 86400) + 25569 - TIME(6,0,0)
rsync -azuv -e ssh user@systemaddress:~/path/to/dir/* .
perl -e'print join "\n", @INC'
sudo apt-get install -y tomcat5.5 tomcat5.5-admin tomcat5.5-webapps
chown -R tomcat55:adm [file and folder list here]
$CATALINA_HOME/common/classes
mysqldump -u root -p mydatabasename --no-data=true --add-drop-table=false > test_dump.sql
/**
* @see AchPaymentNoticeOfChangeService#registerNoc(AchPaymentNoticeOfChange)
*/
@Override
public void registerNoc(final AchPaymentNoticeOfChange changeNotification) throws IllegalArgumentException, NoticeOfChangeAlreadyExistsException, Exception {
try {
getHibernateTemplate().execute(new HibernateCallback() {
@Override
public Object doInHibernate(Session session) throws HibernateException, SQLException {
session.save (changeNotification);
// flush the session to ensure that the database gets synchronized
// the end of this call, rather than waiting for any transaction
// managers to handle it and risk letting a DataIntegrityViolationException
// occur outside of this method's handling
session.flush();
return null;
}
});
} catch (DataIntegrityViolationException dive) {
throw new NoticeOfChangeAlreadyExistsException("A notice of change already exists for payment ["+changeNotification.getAchPayment().getId()+"]", dive, changeNotification);
} catch (Exception e) {
throw e;
}
}