I hereby claim:
- I am tonyklawrence on github.
- I am tonylawrence (https://keybase.io/tonylawrence) on keybase.
- I have a public key ASDTjtFgrNwj3uNzjJWCq9mYYLBt8bQzpHh9ZTmjd0xV6go
To claim this, I am signing this object:
⚬ вєят ⚬ |
sed 1,2d sample.csv | awk 'BEGIN { FS=","; OFS=","; } {print $1,$5,$3}' |
version: '2' | |
services: | |
first: | |
... | |
mac_address: d0:ca:4a:99:02:00 | |
networks: | |
some_network_name: | |
ipv4_address: 192.168.1.200 | |
second: |
First we need to create the VLAN on the Synology from the command line: | |
See: https://nielshagoort.com/2016/03/30/synology-vlan-tagging/ | |
Then add Network to Docker using maclvan driver | |
See: https://docs.docker.com/engine/userguide/networking/get-started-macvlan/#macvlan-8021q-trunk-bridge-mode-example-usage | |
Details... |
I hereby claim:
To claim this, I am signing this object:
=> ⇒ | |
<- ← |
require 'net/http' | |
require 'json' | |
environments = {} | |
SCHEDULER.every '30s' do | |
status = 'good' | |
environments['Prod'] = { label: 'Production', value: health('http://prod/openapi/dashboard/health') } | |
environments['UAT'] = { label: 'User Testing', value: health('http://suat/openapi/dashboard/health') } | |
environments['Dev'] = { label: 'Development', value: health('http://dev/openapi/dashboard/health') } |
class Dashing.Workitems extends Dashing.Widget | |
@accessor 'current', Dashing.AnimatedValue | |
onData: (data) -> | |
if data.status | |
$(@get('node')).attr 'class', (i,c) -> c.replace /\bstatus-\S+/g, '' | |
$(@get('node')).addClass "status-#{data.status}" |
class Dashing.Teamcity extends Dashing.Widget | |
@accessor 'state', Dashing.AnimatedValue | |
onData: (data) -> | |
if data.status | |
$(@get('node')).attr 'class', (i,c) -> c.replace /\bstatus-\S+/g, '' | |
$(@get('node')).addClass "status-#{data.status}" |
List<Integer> numberList = asList(1, 2, 3, 4, 5); | |
// old style | |
transform(numberList, byHalf()); | |
// fluent interface | |
FluentIterable numbers = from(numberList); | |
numbers.transform(byHalf()); | |
// assume byHalf() returns us a Guava Function<Integer,Integer> |