Skip to content

Instantly share code, notes, and snippets.

View tullo's full-sized avatar

Andreas tullo

  • localhost
  • 11:37 (UTC +02:00)
View GitHub Profile
var dataListItem = search.findNode("workspace://SpacesStore/f4716370-bad6-451b-906a-d93b806f5d97");
var targetNode = search.findNode("workspace://SpacesStore/831d3f4f-4c15-4b59-91b3-6de50ee8dfe8");
dataListItem.createAssociation(targetNode, "lyse:document");
dataListItem.save();
@tullo
tullo / gist:5378545
Created April 13, 2013 14:09
crontab def for daily execution of an alfresco backup script at 4 a.m.
0 4 * * * /path/to/alfresco/alfrescoBackup.sh /path/to/backup/folder
30 13 * * * /home/username/run-me.sh >/dev/null 2>&1
0 * * * * curl --silent --compressed http://example.com/cron.php >/dev/null 2>&1
crontab filename Install filename as your crontab file,
crontab -e Edit your crontab file, or create one if it doesn’t already exist.
@tullo
tullo / alfrescoBackup.sh
Created April 13, 2013 13:22
Creates a cold backup of Alfresco
#
# Cold backup of Alfresco.
#
# Configuration.
ALF_HOME="/path/to/alfresco"
NUM_DUMP=10
ALF_DATA_SUBDIR="alf_data"
DB_TYPE="postgresql"
DBNAME="alfresco"
@tullo
tullo / gist:1658444
Created January 22, 2012 19:49
Dummy SMTP server for testing #java
java -jar DevNullSmtp.jar
# It is a dummy SMTP server that can be used for testing purposes.
# It helps you see all communication between a client and the server and is very useful if you are trying to find problems with your email server or a client that you wrote.
http://www.aboutmyip.com/AboutMyXApp/DevNullSmtp.jsp
java -jar dumbster.jar 7777
# SMTP fake server for QA, running on port 7777)
# https://github.com/rjo1970/dumbster.git