Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
cat << EOF > /etc/datadog-agent/conf.d/logs.yaml
logs:
- type: udp
port: 10516
service: webapp
source: python
- type: tcp
port: 10518
@fquinner
fquinner / wsl-fedora-strace-issue-3493
Created August 21, 2018 12:52
Fedora builds not working on WSL strace
57 execve("/usr/bin/dnf", ["dnf", "install", "vim"], 0x7fffcb67f558 /* 16 vars */) = 0
57 brk(NULL) = 0x7fffe39fb000
57 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
57 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
57 fstat(3, {st_mode=S_IFREG|0644, st_size=12676, ...}) = 0
57 mmap(NULL, 12676, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f8bfa2e9000
57 close(3) = 0
57 openat(AT_FDCWD, "/lib64/libpython3.6m.so.1.0", O_RDONLY|O_CLOEXEC) = 3
57 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360+\6\0\0\0\0\0"..., 832) = 832
57 lseek(3, 2924744, SEEK_SET) = 2924744