Skip to content

Instantly share code, notes, and snippets.

- addMavenRepository: "https://devtools.jahia.com/nexus/content/groups/internal@id=jahia-internal"
username: "NEXUS_USERNAME"
password: "NEXUS_PASSWORD"
- installOrUpgradeBundle:
- 'mvn:org.jahia.modules/graphql-dxm-provider/2.20.0'
autoStart: true
uninstallPreviousVersion: true
# Install and start bundles for Augmented Search
- addMavenRepository: "https://devtools.jahia.com/nexus/content/groups/enterprise@id=jahia-enterprise"
username: "NEXUS_USERNAME"
password: "NEXUS_PASSWORD"
- installOrUpgradeBundle:
- 'mvn:org.jahia.modules/graphql-dxm-provider/2.11.0'
- 'mvn:org.jahia.modules/database-connector/1.5.0'
- 'mvn:org.jahia.modules/elasticsearch-connector/3.2.0'
- 'mvn:org.jahia.modules/augmented-search/3.5.0'
- 'mvn:org.jahia.modules/augmented-search-ui/3.0.4'
# Install and start bundles for Augmented Search
- addMavenRepository: "https://devtools.jahia.com/nexus/content/groups/enterprise@id=jahia-enterprise@snapshots"
username: "NEXUS_USERNAME"
password: "NEXUS_PASSWORD"
- installOrUpgradeBundle:
- 'mvn:org.jahia.modules/database-connector'
- 'mvn:org.jahia.modules/elasticsearch-connector'
- 'mvn:org.jahia.modules/augmented-search'
- 'mvn:org.jahia.modules/augmented-search-ui'
- 'mvn:org.jahia.modules/server-availability-manager/2.1.0'
@rknj
rknj / java-license-allowlist.txt
Last active September 26, 2022 14:38
java-license-allowlist
MIT|The Apache|Apache|ALv2|LGPL|GNU Lesser General Public License|BSD|CDDL|Common Development and Distribution License|Eclipse Public License|Mozilla Public License|wtfpl|Universal Permissive License|Indiana University Extreme! Lab Software License|GWT Terms|Commercial License|Public Domain|Day Specification License|ICU License|Bouncy Castle Licence|CC0|Common Public License|CPL
@rknj
rknj / js-license-allowlist.txt
Last active October 13, 2022 15:28
js-license-allowlist
MIT,Apache-2.0,LGPL-2.0,BSD-2-Clause,CDDL,EPL,WTFPL,UPL
@rknj
rknj / instagram.js
Last active November 16, 2020 10:08
This only works with Instagram public data. It gets all the pictures for the specified year and returns the best 9 (based on number of likes).
const getBest9PostsFromYear = (userId, after, year, media = []) => {
const jsonDataUrl = `https://www.instagram.com/graphql/query/?query_id=17888483320059182&id=${userId}&first=50`;
const instaUrl = `${jsonDataUrl}${after}`;
return fetch(instaUrl)
.then(response => response.json())
.then(({data}) => {
const currentData = data.user.edge_owner_to_timeline_media;
const lastMediaYear = getMediaYear(currentData.edges[currentData.edges.length - 1].node.taken_at_timestamp);
<report name="My Report" key="my-report" class="org.example.jira.reports.MyReport">
<description key="my-report.description"/>
<resource name="view" type="velocity" location="/templates/reports/my-report/view.vm"/>
<resource name="i18n" type="i18n" location="MyReport"/>
<label key="my-report.label"/>
<properties>
<property>
<key>versionId</key>
<name>report.myreport.versionId</name>
<description>report.myreport.versionId.description</description>