This file contains hidden or 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
function generateRecord(documentId, processId, processJournalId) { | |
var journalRecord = new veda.IndividualModel(); | |
journalRecord.defineProperty("rdf:type"); | |
journalRecord.defineProperty("v-s:actor"); | |
journalRecord.defineProperty("v-s:processJournal"); | |
journalRecord.defineProperty("v-wf:onProcess"); | |
journalRecord.defineProperty("v-s:onDocument"); | |
journalRecord["rdf:type"] = [veda.ontology["v-wf:TaskGiven"]]; |
This file contains hidden or 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
/* BEGIN Починить все старты маршрутов по идеям */ | |
// Получить все идеи | |
var s = new veda.SearchModel("'rdf:type' == 'mnd-s-asppd:Idea'", null); | |
Object.getOwnPropertyNames(s.results).map( function (res_id) { | |
var res = s.results[res_id]; | |
// console.log(res); | |
// Получить журнал | |
var journal = new veda.IndividualModel(res.id+'j'); | |
journal['v-s:childRecord'].forEach(function (record) { |
This file contains hidden or 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 | |
if [ $# -eq 2 ]; then | |
find $2 -type f -mmin +$1 -delete | |
else | |
echo "Illegal arguments. Right syntax is: removeold.sh N FOLDERPATH" | |
exit 1 | |
fi |
This file contains hidden or 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/sh | |
# Check parameter | |
if [ $# -eq 0 ]; then | |
echo "No argument specified. Right syntax is: automount.sh MOUNTPATH" | |
exit 1 | |
else | |
# Check fstab contains folder | |
if cat /etc/fstab | grep $1 > /dev/null; then | |
# Check directory already mapped |