Skip to content

Instantly share code, notes, and snippets.

Douglas C. R. Paes douglascrp

Block or report user

Report or block douglascrp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
douglascrp / gist:50d0ae95c78181971e5f0ab9ec03e399
Created Jan 20, 2020 — forked from dexalex84/gist:334bdd189dd923a63e80c45300fb30be
Pentaho BA CE 7.0 Install with PostgreSQL repo DB on CentOS
View gist:50d0ae95c78181971e5f0ab9ec03e399
Pentaho BA 7.0 Install with PostgreSQL repo DB
1) find
vi /etc/yum.repos.d/CentOS-Base.repo
View Cleaning docker "trash"
douglascrp / add_all_users_members_group.js
Created Nov 6, 2019
How to insert all Alfresco users into a group with javascript
View add_all_users_members_group.js
var group = groups.getGroup("todos");
if (group) {
var usuarios = people.getPeople(null, -1);
for (var i = 0; i < usuarios.length; i++) {
var usuario = search.findNode(usuarios[i]);
var userName =["cm:userName"];
View Duplicity instal Ubuntu 14.04
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
View Verificar dns reverso
host <server_ip>
host <server_dns_name>
The values returned should match in order to be ok
View Teste registro protocolo do sinadura no Firefox
Abrir uma nova aba e digitar na barra de endereço:
data:text/html,<a href="sinadura://resolve?domain=Bold">Link</a>
View configuracoes ssh.txt
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, desligar login com senha e trocar porta padrão
# vim /etc/ssh/sshd_config
douglascrp / Alfresco with Apache proxy and Let's Encrypt on Ubuntu
Last active Feb 15, 2019
Alfresco with Apache proxy and Let's Encrypt on Ubuntu
View Alfresco with Apache proxy and Let's Encrypt on Ubuntu
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
douglascrp / gist:eef2ab7197fea613a77f593b7784aac8
Created Feb 6, 2019 — forked from fmaul/gist:2a726224e23381fa41f9
Change username for cm:owner cm:creator cm:modifier in Alfresco Javascript Console
View gist:eef2ab7197fea613a77f593b7784aac8
var ctx =;
var behaviourFilter = ctx.getBean("policyBehaviourFilter");
// -----------------------------------------------------------------
function findAndReplaceAttribute(query, attribute, value) {
nodes = search.luceneSearch(query);
for each(var node in nodes) {
douglascrp / start-wf-assigned-to-site-group.js
Created Feb 6, 2019 — forked from alfrescian/start-wf-assigned-to-site-group.js
Start Alfresco Workflow assigned to SiteManager group of a site
View start-wf-assigned-to-site-group.js
var ctx =;
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: " +;
You can’t perform that action at this time.