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 | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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 SSLProtocolTests { | |
public static void main(String[] args) throws Exception { | |
SSLContext context = SSLContext.getDefault(); | |
SSLSocketFactory factory = (SSLSocketFactory)context.getSocketFactory(); | |
SSLSocket socket = (SSLSocket)factory.createSocket(); | |
String[] protocols = socket.getSupportedProtocols(); | |
System.out.println("Supported Protocols: " + protocols.length); | |
for(int i = 0; i < protocols.length; i++) |
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
# Tested on OSX Yosemite 10.10.4 | |
# there is also an updated version (work in progress) for El Capitan here https://gist.github.com/guycalledseven/31ffe35eca056838b06b | |
# XXX TODO | |
# should I disable com.google.Keystone.Agent ?? | |
# http://applehelpwriter.com/2014/07/13/how-to-remove-googles-secret-update-software-from-your-mac/ | |
# Stop DS_Store file creation on network connections | |
# restart Finder afterwards |
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
Your blockchain must have all of the following properties:
- It's a merkle tree, or a construct with equivalent properties.
- There is no single point of trust or authority; nodes are operated by different parties.
- Multiple 'forks' of the blockchain may exist - that is, nodes may disagree on what the full sequence of blocks looks like.
- In the case of such a fork, there must exist a deterministic consensus algorithm of some sort to decide what the "real" blockchain looks like (ie. which fork is "correct").
- The consensus algorithm must be executable with only the information contained in the blockchain (or its forks), and no external input (eg. no decisionmaking from a centralized 'trust node').
If your blockchain is missing any of the above properties, it is not a blockchain, it is just a ledger.
These are notes for my Prometheus workshop. The follow-up workshop on Prometheus/Kubernetes can be found here.
- Technology: Time Series Database
- Approach: Black Box vs White Box
- Scope: Time Series (Prometheus) vs. Logfiles (ELK), vs. Tracing (Zipkin)
node_exporter
These are notes for my Kubernetes/Prometheus workshop. The notes for the Prometheus introduction workshop can be found here.
The first part of this workshop is taken from episode 001 of the excellent TGI Kubernetes series by Heptio.
The demo runs on AWS.
Before the demo, do the following:
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
@startuml fancy | |
skinparam sequence { | |
LifeLineBorderColor Green | |
ArrowColor black | |
ParticipantBorderColor black | |
ParticipantBackgroundColor GreenYellow | |
ParticipantFontColor black | |
} | |
skinparam actor { | |
backgroundColor white |
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
# Make coding more python3-ish | |
from __future__ import (absolute_import, division, print_function) | |
from abc import ABCMeta | |
from array import array | |
from base64 import b64encode, b64decode | |
from Crypto import Random | |
from Crypto.Cipher import AES | |
from Crypto.Hash import SHA256 |