This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
--- | |
version: "3.8" | |
services: | |
master: | |
image: chrislusf/seaweedfs:latest | |
command: master -mdir=/data | |
networks: | |
- weed |
name=iptables | |
version=1.4.21 | |
release=1 | |
source=(ftp://ftp.netfilter.org/pub/iptables/$name-$version.tar.bz2) | |
PKG="$(pwd)/pkg" | |
if [ -d $PKG ]; then | |
mkdir -p $PKG | |
fi |
--- | |
version: "3.8" | |
services: | |
seed: | |
image: consul:latest | |
environment: | |
- "CONSUL_LOCAL_CONFIG={\"disable_update_check\": true}" | |
- "CONSUL_BIND_INTERFACE=eth0" | |
entrypoint: |
MIT
Go
MIT
Go
MIT
Go
MIT
Go
MIT
Go
[2023-04-14 21:04:08] <westbam0> Hello, small question. Can you read this feed with twtxt?? https://feeds.twtxt.net/@afpfr@amicale.net/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 \; }