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/env python3 | |
import os | |
import boto3 | |
import argparse | |
parser = argparse.ArgumentParser( | |
description="copy all versions of objects into separate files" | |
) | |
parser.add_argument("--bucket", "-b", required=True) | |
parser.add_argument("--profile", "-p") |
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
var connectionString = 'postgres://localhost:5432/postgres'; | |
var Promise=require('bluebird'); | |
var knex = require('knex')({ | |
client: 'pg', | |
connection: { | |
user: 'postgres', | |
database: 'postgres', | |
port: 5432, |
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
import java.util.Random; | |
import org.infinispan.Cache; | |
import org.infinispan.configuration.cache.CacheMode; | |
import org.infinispan.configuration.cache.Configuration; | |
import org.infinispan.configuration.cache.ConfigurationBuilder; | |
import org.infinispan.configuration.global.GlobalConfiguration; | |
import org.infinispan.configuration.global.GlobalConfigurationBuilder; | |
import org.infinispan.manager.DefaultCacheManager; |
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
<config xmlns="urn:org:jgroups" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="urn:org:jgroups http://www.jgroups.org/schema/JGroups-3.4.xsd"> | |
<TCP | |
bind_addr="${jgroups.tcp.address:127.0.0.1}" | |
bind_port="${jgroups.tcp.port:7800}" | |
loopback="false" | |
port_range="30" | |
recv_buf_size="20m" | |
send_buf_size="640k" |
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
import java.util.*; | |
/** | |
* @author Luc | |
* Change startDate and endDate (must span at least 2 full months) | |
* | |
*/ | |
def sdf = new java.text.SimpleDateFormat("dd-MM-yyyy") |