Skip to content

Instantly share code, notes, and snippets.

#! /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
#
# 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
@alex4u2nv
alex4u2nv / vhost.conf
Created February 20, 2019 21:49
s3 vhost
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>
@Before
public void setupTestCases() {
nodeService = getServiceRegistry().getNodeService();
transactionService = getServiceRegistry().getTransactionService();
nodeLocatorService = getServiceRegistry().getNodeLocatorService();
fileFolderService = getServiceRegistry().getFileFolderService();
myService = (MyService)getApplicationContext().getBean("myServiceId");
}
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<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>
<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>
-->
<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>