Skip to content

Instantly share code, notes, and snippets.

View gist:6bf21dcb0352cecbcee188b1bc649aeb
#! /usr/bin/env python3
import boto3
import time
import os
REGION = os.getenv('AWS_REGION', 'us-east-1')
def fibonacci(n):
if n <= 0:
print("incorect input")
elif n == 1:
return 0
View httpd-proxy.conf
#
# This configuration file enables the default "Welcome" page if there
# is no default index page present for the root URL. To disable the
# Welcome page, comment out all the lines below.
#
# NOTE: if this file is removed, it will be restored on upgrades.
#
Listen 443
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite HIGH:!aNULL:!MD5
View vhost.conf
Listen 443
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite HIGH:!aNULL:!MD5
SSLVerifyClient none
SSLCertificateFile /etc/ssl/certs/node-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/node-selfsigned.key
LogLevel warn
<VirtualHost *:443>
View it-test.java
@Before
public void setupTestCases() {
nodeService = getServiceRegistry().getNodeService();
transactionService = getServiceRegistry().getTransactionService();
nodeLocatorService = getServiceRegistry().getNodeLocatorService();
fileFolderService = getServiceRegistry().getFileFolderService();
myService = (MyService)getApplicationContext().getBean("myServiceId");
}
View profiles-2.pom.xml
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
View profiles-pom.xml
<profiles>
<!--
Brings in the extra Enterprise specific repository classes,
if the 'enterprise' profile has been activated, needs to be activated manually. -->
<profile>
<id>enterprise</id>
<dependencies>
<dependency>
<groupId>${alfresco.groupId}</groupId>
View modules-pom.xml
<modules>
<module>my-repository-module</module>
<module>my-shareui-module</module>
<module>integration-tests</module>
<!-- These are no longer needed for the SDK 3.0
<module>repo</module>
<module>solr-config</module>
<module>share</module>
<module>runner</module>
-->
View sdk-resources-pom.xml
<repositories>
<repository>
<id>alfresco-public</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</repository>
<repository>
<id>alfresco-public-snapshots</id>
<url>https://artifacts.alfresco.com/nexus/content/groups/public-snapshots</url>
<snapshots>
<enabled>true</enabled>