Linux driver Information on Ethernet Adapters I have come across
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 | |
vault list -format json /auth/token/accessors \ | |
| jq -r '.[]' | xargs -I % vault token lookup -format=json -accessor % \ | |
| jq -cr '.data|[(.creation_time | todate),.accessor,.display_name,(.meta|tojson)]|join("%%")' \ | |
| column -t -xs %% | sort -h |
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"sort" | |
"strings" | |
"sync" | |
"time" |
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
const m = Machine({ | |
key: 'agent-probe', | |
initial: 'connecting', | |
states: { | |
connecting: { | |
on: { | |
"GRPC_CONNECTED": 'connected', | |
"GRPC_DISCONNECTED": 'connecting', | |
"CTX_DONE": 'shutdown', | |
} |
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
const m = Machine({ | |
key: 'agent-probe', | |
initial: 'connecting', | |
states: { | |
connecting: { | |
on: { | |
"GRPC_CONNECTED": 'connected', | |
"GRPC_DISCONNECTED": 'connecting', | |
"CTX_DONE": 'shutdown', | |
} |
SSH Into Cloud Key, or Machine with Cloud controller's Mongo Shell:
ssh admin@<cloudkey-ip> -t mongo localhost:27117
Then you can use the following snippet tailoring it to your needs:
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
version: "2" | |
services: | |
influxdb: | |
image: "influxdb" | |
restart: always | |
mem_limit: 750m | |
volumes: | |
- ./data/influxdb:/var/lib/influxdb | |
ports: | |
- 8086:8086 |
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 | |
PROG="$(basename $0)" | |
_help() { | |
if [[ -n $1 ]]; then | |
echo "ERROR: $1" | |
echo | |
fi | |
echo "INFO:" | |
echo " A utility for snapshotting a tree from a given commit." |
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
package internal | |
import ( | |
"context" | |
"sync" | |
"sync/atomic" | |
"time" | |
) | |
type CtxWG struct { |
Notes For Languages I Use: