This file contains 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
(() => { | |
const doc = window.document.querySelector("iframe").contentDocument || window.document; | |
for (const entry of doc.querySelectorAll(".c_c_date")) { | |
if (typeof entry.attributes.sort !== "undefined") { | |
const originalText = entry.innerHTML, | |
createdAt = new Date(0); | |
createdAt.setUTCSeconds(entry.attributes.sort.value); | |
entry.innerHTML = `${createdAt.toLocaleDateString()} ${createdAt.toLocaleTimeString()}` + entry.innerHTML.substring(16); | |
} |
This file contains 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" | |
"testing" | |
) | |
/* | |
goos: windows |
This file contains 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 | |
echo 'deb http://deb.debian.org/debian buster-backports main' | tee -a /etc/apt/sources.list | |
echo 'deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/ /' | tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list | |
wget -O- https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/Debian_10/Release.key | apt-key add - | |
apt-get update | |
apt-get install -y -t buster-backports libseccomp2 | |
apt-get install -y containernetworking-plugins apparmor apparmor-utils auditd podman |
This file contains 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
# Iptables | |
iptables -A INPUT -m bpf --bytecode "$(tcpdump -y RAW -ddd icmp | tr '\n' ',' | sed 's/,$//')" -j DROP -m comment --comment "icmp" | |
# Nftables | |
# TODO |