- Create a table named nat with the ip address family:
nft add table ip nat
- Add the prerouting and postrouting chains to the table:
nft -- add chain ip nat prerouting { type nat hook prerouting priority -100 \; }
[2023-04-14 21:04:08] <westbam0> Hello, small question. Can you read this feed with twtxt?? https://feeds.twtxt.net/@[email protected]/twtxt.txt | |
[2023-04-14 21:05:44] <westbam0> with twtxt in command line, it shows me that | |
[2023-04-14 21:05:44] <westbam0> ➤ afp_fr (14 hours ago): | |
[2023-04-14 21:05:44] <westbam0> **** | |
[2023-04-14 21:19:14] <buckket> They are using a format the original client does not support to do multiline posts | |
[2023-04-14 21:46:24] <westbam0> buckket And not a way to put in place a treatment to make it compatible? | |
[2023-04-15 00:52:28] → lain` joined (uid504610@user/lain/x-9874679) | |
[2023-04-15 00:53:17] → jaix joined (~jaix@user/jaix) | |
[2023-04-15 01:05:00] → xuu joined (xuu@user/xuu) | |
[2023-04-15 02:13:11] ⇐ jaix quit (~jaix@user/jaix): Quit: Leaving |
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:json_rpc_2/json_rpc_2.dart'; | |
import 'package:stream_channel/stream_channel.dart'; | |
StreamChannel<String> unixSocketChannel(String path) { | |
final host = InternetAddress(path, type: InternetAddressType.unix); | |
final controller = StreamChannelController<String>(sync: true); | |
Socket.connect(host, 0).then((socket) { | |
socket.cast<String>().pipe(controller.local.sink); |
FROM busybox | |
ENTRYPOINT ["echo", "Hello", "World"] |
--- | |
version: "3.8" | |
services: | |
vault: | |
# image: vault:latest | |
image: prologic/vault:dev-ui | |
hostname: "{{.Node.Hostname}}" | |
environment: | |
VAULT_ADDR: "http://127.0.0.1:8200" |
nft add table ip nat
nft -- add chain ip nat prerouting { type nat hook prerouting priority -100 \; }
--- | |
groups: | |
- name: msgbus | |
interval: 15s | |
rules: | |
- alert: zero_subscribers | |
expr: | | |
msgbus_bus_subscribers == 0 | |
for: 30s | |
annotations: |
--- | |
- name: traefik | |
interval: 15s | |
rules: | |
- alert: p95_latency | |
expr: | | |
label_replace( | |
histogram_quantile( | |
0.95, | |
sum( |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
) | |
func main() { | |
cnames, addrs, err := net.LookupSRV("_salty", "_tcp", "home.arpa") |
sum(label_replace( | |
increase(container_network_transmit_bytes_total{image!="", container_label_com_docker_stack_namespace=~"$stack", container_label_com_docker_swarm_service_name=~"$service"}[$__range]) | |
+ | |
increase(container_network_receive_bytes_total{image!="", container_label_com_docker_stack_namespace=~"$stack", container_label_com_docker_swarm_service_name=~"$service"}[$__range]), | |
"task_name", "$1", "container_label_com_docker_swarm_task_name", "(.*\\.[0-9]*).*\\..*")) by (task_name) |
#!/bin/sh | |
random_string() { | |
tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1 | |
} | |
echo " - API_SIGNING_KEY=$(random_string)" | |
echo " - COOKIE_SECRET=$(random_string)" | |
echo " - MAGICLINK_SECRET=$(random_string)" |