sudo apt install inotify-tools
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/bash | |
# v 2.1.0 | |
syslog=/etc/rsyslog.d/09-externalserver.conf | |
# this logs notice and above. use *.* log everything. | |
filter=*.notice | |
server=192.168.0.19 # Change the server to the IP of your syslog server. | |
port=514 | |
hostname=firewalla | |
valid=$(grep "$server:$port" $syslog 2>/dev/null) |
A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.
The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.
JoinMarket release 0.2.0 ameliorates this snooping attack. It is a protocol-breaking change so everyone must update which we anticipate may take some time.
https://github.com/JoinMarket-Org/joinmarket/blob/master/doc/release-notes-0.2.0.md
Looks like enough people have updated and there's plenty of liquidity now.
I hereby claim:
- I am pblittle on github.
- I am pblittle (https://keybase.io/pblittle) on keybase.
- I have a public key ASCcLVaRmtIgqYFDdGLevHMO2S19-z-q84Nfa7Eb9UfbAwo
To claim this, I am signing this object:
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 ruby | |
# coding: utf-8 | |
require 'yaml' | |
jobs = Dir['jobs/*'].map { |j| File.basename(j) } | |
print "∑ | Job | Property | Description\n --- | --- | --- | ---\n" | |
jobs.map! do |job| | |
spec = YAML.load_file(File.join("jobs", job, "spec")) |
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/ruby | |
require 'rubygems' | |
require 'json' | |
require 'pp' | |
# for the #sh helper | |
require "rake" | |
require "rake/file_utils" | |
include FileUtils | |
## PREREQ: Using CF cli tools, make sure you've logged in as a user (admin) who can see all orgs/spaces |
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/bash | |
# | |
# This product includes software originally developed by IBM Corporation. | |
# | |
# | |
# Copyright IBM Corp. 2015 | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at |
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
bosh ssh api_z1 --gateway_user vcap --gateway_identity_file ~/.ssh/id_rsa_bosh --gateway_host micro.run.example.com |
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 increment_ipv4 { | |
local ip_base=$1 | |
local incr_amount=$2 | |
local -a ip_components | |
local ip_regex="([0-9]+).([0-9]+).([0-9]+).([0-9]+)" | |
[[ $ip_base =~ $ip_regex ]] | |
ip_components=("${BASH_REMATCH[1]}" "${BASH_REMATCH[2]}" "${BASH_REMATCH[3]}" "${BASH_REMATCH[4]}") | |
ip_dec=0 | |
local comp | |
for comp in "${ip_components[@]}"; do |
NewerOlder