Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Article struct { | |
ID int | |
Title string |
add_executable(blink | |
blink.c | |
) | |
# pull in common dependencies | |
target_link_libraries(blink pico_stdlib hardware_spi) | |
# enable stdio output to usb serial | |
pico_enable_stdio_usb(blink 1) |
package main | |
import "fmt" | |
type Fighter struct { | |
name string | |
health int | |
attack int | |
defence int | |
} |
#!/usr/bin/env bash | |
#Install brew and qemu + cloud init metadata dependencies | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
brew install qemu | |
brew install cdrtools | |
rm -rf /tmp/ubuntuqemuboot | |
#download Ubuntu 20.04 Cloud Image and resize to 30 Gigs | |
mkdir -p /tmp/ubuntuqemuboot/images |
require "http/server" | |
require "pinger" | |
BATCH_SIZE = 2 | |
BATCH_INTERVAL = 1 | |
PING_INTERVAL = 0.05 | |
PING_COUNT = 1 | |
PING_TIMEOUT = 1 | |
hostnames = ["1.1.1.1", "8.8.8.8", "127.0.0.1"] |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
) | |
// Выходы | |
type ExitKind int |
// Solution for https://github.com/Ecwid/new-job/blob/master/IP-Addr-Counter.md | |
package main | |
import ( | |
"archive/zip" | |
"bufio" | |
"fmt" | |
"log" | |
"time" | |
) |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"time" | |
) |