Skip to content

Instantly share code, notes, and snippets.

View mikezaccardo's full-sized avatar

Mike Zaccardo mikezaccardo

View GitHub Profile
@mikezaccardo
mikezaccardo / attribute-when-ready-example.yaml
Created August 2, 2016 15:57
Example of `attributeWhenReady` in YAML Blueprint
name: "Attribute When Ready Example"
location: <add-location-here>
services:
- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
id: item-A
name: A
launch.command: |
echo $(date)
git reset --soft HEAD~N
git commit -m "Commit message here"
git push -f
N = the number of commits back (including head) that you will squash
@mikezaccardo
mikezaccardo / app.log
Created June 17, 2016 05:16
BB Multi-Location Failure
root@f70e82a29029:/go/src/github.com/hyperledger/fabric/examples/chaincode/go/asset_management/app# ./app
2016/06/17 05:05:13 setting Number of procs to -1, was 2
2016/06/17 05:05:13 Log level recognized 'info', set to INFO
2016/06/17 05:05:13 Registering client [jim] with name [jim]...
2016/06/17 05:05:13 [client.jim] Register crypto engine...
2016/06/17 05:05:13 [client.jim] Register crypto engine...done.
2016/06/17 05:05:13 Registering client [jim] with name [jim]...done!
2016/06/17 05:05:13 Initializing client [jim]...
2016/06/17 05:05:14 Initializing client [jim]...done!
2016/06/17 05:05:14 Registering client [lukas] with name [lukas]...
brooklyn.catalog:
version: 0.0.1
items:
- id: rhel7
itemType: location
item:
type: byon
brooklyn.config:
displayName: rhel7
user: vagrant
@mikezaccardo
mikezaccardo / vp3.log
Created May 16, 2016 04:38
Hyperledger Peer Node Log (vp3)
3:58:30.093 [crypto] main -> INFO 001 Log level recognized 'info', set to INFO
03:58:30.094 [peer] func1 -> INFO 002 Auto detected peer address: 172.17.0.2:30303
03:58:30.094 [peer] func1 -> INFO 003 Auto detected peer address: 172.17.0.2:30303
03:58:30.094 [peer] func1 -> INFO 004 Auto detected peer address: 172.17.0.2:30303
03:58:30.095 [main] serve -> INFO 005 Security enabled status: false
03:58:30.095 [main] serve -> INFO 006 Privacy enabled status: false
03:58:30.096 [chaincode] NewChaincodeSupport -> INFO 007 Chaincode support using peerAddress: 172.17.0.2:30303
03:58:30.096 [eventhub_producer] start -> INFO 008 event processor started
03:58:30.110 [state] loadConfig -> INFO 009 Loading configurations...
03:58:30.110 [state] loadConfig -> INFO 00a Configurations loaded. stateImplName=[buckettree], stateImplConfigs=map[maxGroupingAtEachLevel:%!s(int=5) bucketCacheSize:%!s(int=100) numBuckets:%!s(int=1000003)], deltaHistorySize=[500]
@mikezaccardo
mikezaccardo / vp0.log
Created May 16, 2016 04:34
Hyperledger Root Node Log (vp0)
03:57:40.331 [crypto] main -> INFO 001 Log level recognized 'info', set to INFO
03:57:40.331 [peer] func1 -> INFO 002 Auto detected peer address: 172.17.0.2:30303
03:57:40.332 [peer] func1 -> INFO 003 Auto detected peer address: 172.17.0.2:30303
03:57:40.332 [peer] func1 -> INFO 004 Auto detected peer address: 172.17.0.2:30303
03:57:40.333 [main] serve -> INFO 005 Security enabled status: false
03:57:40.333 [main] serve -> INFO 006 Privacy enabled status: false
03:57:40.333 [chaincode] NewChaincodeSupport -> INFO 007 Chaincode support using peerAddress: 172.17.0.2:30303
03:57:40.334 [eventhub_producer] start -> INFO 008 event processor started
03:57:40.351 [state] loadConfig -> INFO 009 Loading configurations...
03:57:40.351 [state] loadConfig -> INFO 00a Configurations loaded. stateImplName=[buckettree], stateImplConfigs=map[maxGroupingAtEachLevel:%!s(int=5) bucketCacheSize:%!s(int=100) numBuckets:%!s(int=1000003)], deltaHistorySize=[500]
@mikezaccardo
mikezaccardo / same-server-entity-example.yaml
Last active November 10, 2015 14:27
SameServerEntity Example
name: "SameServerEntity Example"
location: localhost
services:
- type: org.apache.brooklyn.entity.software.base.SameServerEntity
id: parent
name: Parent Entity
children.startable.mode: background_late
brooklyn.children:
- serviceType: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess
@mikezaccardo
mikezaccardo / artifactory-nginx-template.conf
Created October 5, 2015 21:03
Artifactory nginx Template
events {
worker_connections 768;
# multi_accept on;
}
http {
upstream artifactory {
ip_hash;
server SERVER_IP_HERE:8081;
CREATE DATABASE artdb CHARACTER SET utf8 COLLATE utf8_bin;
GRANT ALL ON artdb.* TO 'USER_HERE'@'localhost' IDENTIFIED BY 'PASSWORD_HERE';
GRANT ALL ON artdb.* TO 'USER_HERE'@'%' IDENTIFIED BY 'PASSWORD_HERE';
FLUSH PRIVILEGES;