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
var sites = siteService.listSites(null, null, 0); | |
logger.warn("qtde sites: " + sites.length); | |
for (var i = 0; i < sites.length; i++) { | |
logger.log(sites[i].shortName + " : " + sites[i].title); | |
var sitesRoles = siteService.listSiteRoles(sites[i].shortName); | |
for (var index = 0; index < sitesRoles.length; index++) { | |
var siteRole = sitesRoles[index]; | |
logger.warn(siteRole); |
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
var email = "email"; | |
var mail = actions.create("mail"); | |
mail.parameters.to = email; | |
mail.parameters.subject = "Teste: " + document.name; | |
mail.parameters.text = "Email de teste"; | |
mail.execute(document); |
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
var em = actions.create("extract-metadata"); | |
em.execute(document); |
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
youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 <Video-URL> |
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
Forcing the latest image's version before starting the containers | |
docker compose pull | |
Rebuilding all the containers with docker-compose | |
docker-compose up --build --force-recreate -d | |
Rebuild a single container with docker-compose | |
docker-compose up -d --force-recreate --no-deps --build <service_name> |
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
# Com o documento selecionado, usar a ação "Usar no Javascript Console", e executar o código abaixo: | |
document.removeAspect("rn:renditioned"); | |
document.removeAspect("cm:thumbnailModification"); | |
document.save(); |
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
cd /tmp | |
wget http://archive.apache.org/dist/activemq/5.15.8/apache-activemq-5.15.8-bin.tar.gz | |
tar -xvzf apache-activemq-5.15.8-bin.tar.gz | |
sudo mv apache-activemq-5.15.8 /opt/activemq | |
sudo addgroup --quiet --system activemq | |
sudo adduser --quiet --system --ingroup activemq --no-create-home --disabled-password activemq | |
sudo chown -R activemq:activemq /opt/activemq |
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
// from https://hub.alfresco.com/t5/alfresco-content-services-forum/ldap-sync-fails-after-cleanalfproptablespostexec-sql/m-p/40015/highlight/true#M2224 | |
var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
var SyncStatus = Packages.org.alfresco.repo.security.sync.SyncStatus; | |
var attributeService = context.getBean('attributeService', Packages.org.alfresco.service.cmr.attributes.AttributeService); | |
var ROOT_ATTRIBUTE_PATH = ".ChainingUserRegistrySynchronizer"; | |
var STATUS_ATTRIBUTE = "STATUS"; | |
var SUMMARY_ATTRIBUTE = "SUMMARY"; | |
var zone = "ldap1"; |
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
var context = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
var attributeService = context.getBean("attributeService", Packages.org.alfresco.repo.attributes.AttributeServiceImpl); | |
attributeService.getAttributes(function(id, value, keys) { | |
logger.warn("id: " + id + " - key: " + keys[0] + " - " + keys[1] + " - value: " + value); | |
if (keys[0] == "project-repo.sequencial.documentos.operacoes") { | |
attributeService.removeAttribute([keys[0], keys[1]]); | |
} | |
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
flowable.mail.server.host=localhost | |
flowable.mail.server.port=25 | |
flowable.mail.server.username=email | |
flowable.mail.server.password=password | |
flowable.mail.server.default-from=email |
NewerOlder