This file contains 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
българия | 215 | |
---|---|---|
прокопиев | 157 | |
срещу | 154 | |
иванов | 145 | |
според | 119 | |
сорос | 110 | |
капитал | 103 | |
време | 101 | |
общество | 97 | |
всички | 95 |
This file contains 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
костов | 342 | |
---|---|---|
иван | 295 | |
иван костов | 215 | |
българия | 194 | |
време | 138 | |
иванов | 113 | |
прокопиев | 110 | |
много | 108 | |
става | 106 | |
лева | 104 |
This file contains 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
package com.mypackage.ethereumsync; | |
import java.io.File; | |
import java.math.BigInteger; | |
import java.util.Base64; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.concurrent.CountDownLatch; |
This file contains 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
peer { | |
# Network id (=1 real network) | |
networkId = 3 | |
# Port on which ethereumj will listen | |
# for incoming connections | |
listen.port = 30304 | |
# Private key of the peer | |
# The key is generated by default on the first run and stored in the database folder |
This file contains 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
<dependency> | |
<groupId>org.ethereum</groupId> | |
<artifactId>ethereumj-core</artifactId> | |
<version>1.5.0-RELEASE</version> | |
<exclusions> | |
<exclusion> | |
<artifactId>leveldbjni-all</artifactId> | |
<groupId>org.ethereum</groupId> | |
</exclusion> | |
<exclusion> |
This file contains 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
"PrivateSubnetA": { | |
"Type": "AWS::EC2::Subnet", | |
"Properties": { | |
"AvailabilityZone": { | |
"Fn::Select": [ | |
0, | |
{ | |
"Fn::GetAZs": { | |
"Ref": "AWS::Region" |
This file contains 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/sh | |
# No sudo, as init scripts run as root | |
BUCKET_NAME=$1 | |
STACK_NAME=$2 | |
EC2_AVAIL_ZONE=`curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone` | |
EC2_REGION="`echo \"$EC2_AVAIL_ZONE\" | sed -e 's:\([0-9][0-9]*\)[a-z]*\$:\\1:'`" | |
REGION_PREFIX="`echo ${EC2_REGION: : -2}`" | |
BIND_IP=`curl -s http://169.254.169.254/latest/meta-data/local-ipv4` | |
echo "Bucket name for fetching configuration is $BUCKET_NAME" |
This file contains 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 python | |
import sys | |
from boto import ec2, cloudformation | |
import boto.utils | |
def get_group_info(ec2conn, instance_id) : | |
reservations = ec2conn.get_all_instances(instance_id) | |
instance = [i for r in reservations for i in r.instances][0] | |
if instance.tags.has_key('aws:autoscaling:groupName'): |
This file contains 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
public class TimestampService { | |
private static final Logger logger = LoggerFactory.getLogger(TimestampService.class); | |
private static final AlgorithmIdentifier sha512oid = getSha512Oid(); | |
private static final ASN1ObjectIdentifier baseTsaPolicyId = new ASN1ObjectIdentifier("0.4.0.2023.1.1"); | |
private SecureRandom random = new SecureRandom(); | |
private static AlgorithmIdentifier getSha512Oid() { | |
DigestAlgorithmIdentifierFinder algorithmFinder = new DefaultDigestAlgorithmIdentifierFinder(); |
This file contains 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
public class TimestampValidationService { | |
public boolean validate(String hash, String encodedTimestampToken) { | |
try { | |
byte[] tokenBytes = Base64.getDecoder().decode(encodedTimestampToken); | |
CMSSignedData signedData = new CMSSignedData(tokenBytes); | |
TimeStampToken token = new TimeStampToken(signedData); | |
Optional<X509CertificateHolder> certHolder = getCertificateHolder(signedData); | |
BcRSASignerInfoVerifierBuilder verifierBuilder = new BcRSASignerInfoVerifierBuilder( | |
new DefaultCMSSignatureAlgorithmNameGenerator(), |