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
#!/usr/bin/python3 | |
import hashlib | |
import sys | |
import getpass | |
print("*************************************************************") | |
print("* Generate md4 password hash for alfresco content services *") | |
print("*************************************************************") | |
# https://docs.python.org/3.8/library/getpass.html |
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
// Based on Tech Article: | |
// https://community.hyland.com/tskb/000013140-how-to-downgrade-the-outlook-integration-module-after-installing-unsupported-amp-version | |
// the correct uuid for the amp module needs to be identified via the node browser inside the system://system Store | |
var sysNodeUUID = "system://system/8b6df670-9bb3-462b-8483-9b156e2621fd"; | |
var newVersionString = "1.0.0"; | |
/** | |
* Searches for the target node and sets a fix Version for "module:currentVersion" | |
* @param sysNodeUUID {String} module node string e.g. "system://system/uuid" |
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
-- PostgreSQL Script to delete ACS Database in case we do not have permissions to drop and create database | |
-- drop tables in 'public' schema | |
-- but do not delete sfc table! | |
DO $$ | |
DECLARE | |
r RECORD; | |
BEGIN | |
FOR r IN (select 'drop table if exists"' || tablename || '" cascade;' AS drop_statement from pg_tables WHERE schemaname = 'public' AND tablename != 'sfc') LOOP |
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
INFO [localhost-startStop-1] [catalina.startup.HostConfig] Deploying deployment descriptor [/opt/content-services/tomcat/conf/Catalina/localhost/share.xml] | |
... | |
WARN [localhost-startStop-1] [catalina.webresources.Cache] Unable to add the resource at [/WEB-INF/classes/] to the cache for web application [/share] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache | |
WARN [localhost-startStop-1] [catalina.webresources.Cache] Unable to add the resource at [/WEB-INF/classes/] to the cache for web application [/share] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache | |
WARN [localhost-startStop-1] [catalina.webresources.Cache] Unable to add the resource at [/WEB-INF/classes/] to the cache for web application [/share] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum si |
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
SELECT count(*),round(SUM(u.content_size)/1024/1024, 3) AS "Size (MB)", to_char(n.audit_created:: date,'yyyy') as yyyy_ | |
FROM alf_node AS n, | |
alf_node_properties AS p, | |
alf_node_properties AS p1, | |
alf_namespace AS ns, | |
alf_qname AS q, | |
alf_content_data AS d, | |
alf_content_url AS u | |
WHERE n.id=p.node_id | |
AND ns.id=q.ns_id |
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
-- clear all user license states | |
delete from alf_auth_status; | |
-- remove old checksum and keystore | |
-- ns_id = 1 should always be the system model, store_id = 2 always the system store | |
delete from alf_node_properties where qname_id in ( | |
select id from alf_qname where ns_id = 1 and local_name in ('keyStore', 'authorizationChecksum') | |
) and node_id in ( | |
select id from alf_node where store_id = 2 | |
); |
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 | |
# Sources: | |
# https://github.com/audreyr/favicon-cheat-sheet | |
# https://graphicdesign.stackexchange.com/questions/77359/how-to-convert-a-square-svg-to-all-size-ico | |
set -ex | |
svg=$1 | |
size=(16 24 32 48 64 76 96 128 144 152 196) |
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 | |
# This Script creates threaddumps | |
# for Alfresco Content Service (ACS) and Alfresco Search Services (ASS) | |
# in specified log directory | |
# Script could be used in a cronjob, therefore a delete option for old | |
# threaddumps is implemented | |
# Variables: | |
JAVA_HOME="/opt/java/current" | |
LOG_DIR="/opt/alfresco/logs" |
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
<?xml version='1.0' encoding='utf-8'?> | |
<Context crossContext="true" docBase="{{ acs_home }}/ecm_war_delivery/alfresco.war"> | |
<Resources cacheMaxSize="{{ tomcat_resource_cache }}" cacheObjectMaxSize="1024"> | |
<PostResources base="${catalina.base}/../modules/platform" | |
className="org.apache.catalina.webresources.DirResourceSet" | |
webAppMount="/WEB-INF/lib"/> | |
</Resources> | |
</Context> |
OlderNewer