This file contains 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
Pentaho BA 7.0 Install with PostgreSQL repo DB | |
INSTALL POSTGRES | |
https://wiki.postgresql.org/wiki/YUM_Installation | |
1) find | |
/etc/yum.repos.d/CentOS-Base.repo | |
vi /etc/yum.repos.d/CentOS-Base.repo | |
remove | |
add |
This file contains 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 group = groups.getGroup("todos"); | |
if (group) { | |
logger.warn("encontrado");// | |
var usuarios = people.getPeople(null, -1); | |
logger.warn(usuarios.length); | |
for (var i = 0; i < usuarios.length; i++) { | |
var usuario = search.findNode(usuarios[i]); | |
var userName = usuario.properties["cm:userName"]; |
This file contains 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
No ubuntu 14.04 | |
https://launchpad.net/~duplicity-team/+archive/ubuntu/ppa | |
sudo add-apt-repository ppa:duplicity-team/ppa | |
sudo apt-get update | |
Most recent version today (2019-09-25): 0.7.19-0ubuntu0ppa1374~ubuntu14.04.1 | |
sudo apt-get install duplicity=0.7.19-0ubuntu0ppa1374~ubuntu14.04.1 |
This file contains 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
host <server_ip> | |
host <server_dns_name> | |
The values returned should match in order to be ok |
This file contains 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
Abrir uma nova aba e digitar na barra de endereço: | |
``` | |
data:text/html,<a href="sinadura://resolve?domain=Bold">Link</a> | |
``` |
This file contains 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
No servidor ssh | |
Criar novo usuário (não root) | |
# adduser <user> | |
Dar permissão de sudo para novo usuário | |
# echo '<user> ALL=(ALL) ALL' >> /etc/sudoers | |
Bloquear acesso ssh com root e trocar porta padrão | |
# vim /etc/ssh/sshd_config |
This file contains 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
sudo apt-get install apache2 | |
sudo a2enmod proxy | |
sudo a2enmod proxy_ajp | |
sudo mkdir -p /var/www/<alfresco-domain> | |
sudo chown -R $USER:$USER /var/www/<alfresco-domain> | |
sudo chmod -R 755 /var/www | |
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/<alfresco-domain>.conf | |
sudo vim /etc/apache2/sites-available/<alfresco-domain>.conf |
This file contains 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 ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
var behaviourFilter = ctx.getBean("policyBehaviourFilter"); | |
// ----------------------------------------------------------------- | |
function findAndReplaceAttribute(query, attribute, value) { | |
nodes = search.luceneSearch(query); | |
for each(var node in nodes) { |
This file contains 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 ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); | |
var javaSiteService = ctx.getBean("siteService"); | |
var site = javaSiteService.getSite(document.nodeRef); | |
var siteManagerGroup = javaSiteService.getSiteRoleGroup(site.getShortName(), "SiteManager", true); | |
var groupAssignee = people.getGroup(siteManagerGroup) | |
var workflow = actions.create("start-workflow"); | |
workflow.parameters.workflowName = "activiti$activitiParallelGroupReview"; | |
workflow.parameters.requiredApprovePercent = 20; | |
workflow.parameters["bpm:workflowDescription"] = "Please review and approve: " + document.name; |
This file contains 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
importClass(Packages.org.springframework.web.context.ContextLoader); | |
importClass(Packages.org.alfresco.service.cmr.repository.TransformationOptions); | |
var context = ContextLoader.getCurrentWebApplicationContext(); | |
var alfThumbnailService = context.getBean("thumbnailService"); | |
alfThumbnailService.updateThumbnail(document.getThumbnail("webpreview").nodeRef, new TransformationOptions()); |