sudo spctl --master-disable
PUT _settings
{
"index": {
"blocks": {
"read_only_allow_delete": "false"
}
}
}
all hosts matching 10.2.?.* (i.e. 10.2.0.0–10.2.9.255)
all hosts matching 10.2.??.* (i.e. 10.2.10.0–10.2.99.255)
all hosts matching 10.2.10?.* (i.e. 10.2.100.0–10.2.109.255)
all hosts matching 10.2.11?.* (i.e. 10.2.110.0–10.2.119.255)
all hosts matching 10.2.12?.* EXCEPT the ones matching 10.2.128.* and 10.12.129.* (and remember that the exclusion must come first!)
Example ~/.ssh/config
starting the server with the option
--web.enable-admin-api
Prometheus
# delete alerts series
curl -v -X POST -g 'http://localhost:9090/api/v2/admin/tsdb/delete_series?match[]=ALERTS'
This file contains hidden or 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 ( | |
"fmt" | |
"github.com/btcsuite/btcd/chaincfg" | |
"github.com/btcsuite/btcutil" | |
) | |
func main() { |
sed -n '/Jul 11 16:40:00/,/Jul 11 17:10:00/p' /var/log/syslog
This file contains hidden or 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 | |
set -e | |
cardano-cli shelley query protocol-parameters \ | |
--mainnet \ | |
--out-file params.json | |
currentSlot=$(cardano-cli shelley query tip --mainnet | jq -r '.slotNo') | |
cardano-cli shelley query utxo --address $(cat payment.addr) --mainnet > fullUtxo.out | |
tail -n +3 fullUtxo.out | sort -k3 -nr > balance.out |
This file contains hidden or 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
siege -c50 -b -t60S -H 'Content-Type: application/json' 'https://example.com/api POST {"id": "1", "jsonrpc": "2.0", "method": "GetBalance", "params":["..."]}' |