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
# Measure traffic with tcpstat | |
tcpstat -i em1 -o "%r\t%b\n" -s 30 0.1 > traffic.txt | |
# Create plot using the below script | |
gnuplot traffic.script > traffic.png | |
# Display plot | |
qlmanage -p 2>/dev/null traffic.png |
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
Q: How big is the blockchain today? | |
A: 415'000 blocks, 70 Gigabytes. | |
Q: Where is the blockchain stored? | |
A: On all the nodes participating in the Bitcoin p2p network. | |
Implicit consensus is achieved by all nodes following the same rules (and incentives). | |
Q: What kind of encryption is Bitcoin using? | |
A: none (rather hashing and signing). |
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
var GitHubApi = require('github'); | |
var assert = require('assert'); | |
var org = 'cargomedia'; | |
var token = '<github-token>'; | |
var api = new GitHubApi({ | |
version: '3.0.0', | |
protocol: 'https', | |
headers: {'user-agent': 'repo-lister'} |
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
(function($) { | |
function visible(element) { | |
return $.expr.filters.visible(element) && !$(element).parents().addBack().filter(function() { | |
return $.css(this, 'visibility') === 'hidden'; | |
}).length; | |
} | |
function focusable(element, isTabIndexNotNaN) { | |
var map, mapName, img, nodeName = element.nodeName.toLowerCase(); | |
if ('area' === nodeName) { |
NewerOlder