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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBXSf5mcUsV8ipFuz6qVfiw+0nSxzUzSvvzcwMjXXsgh moycat@home | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjurLUQPZmDWO5iRh0pa0gw6gRAwbKWbPPpXszm8iwzWNAUNXSNOZAhqrlA5Gc+8nbSjO4emryoVgUtinl63CffuxwLzuKk0kShMsm2MFd2RWXCEwfi3keufmFcydYPzOPC2XdwHtaV/gMnmIMdxtCQdKHIk1Mi/U1tl81sZPlJnw8PC9MuVzIxPIfnBH1L9VK8l1VeuN2PxGg0JQXR4cobpYbQEx9KBgJgDCa8fbD9Bh7nPZza33XGW6VRM9sDa9NqlHJpw6tGZmR6FGW3ci6iGVbBtRbOT5JsYMBYcv0h0js9nChnqOm4TVkfXWkCdcINrDrEZtdphnJ1N4S/t8p moycat@work | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC2Kdh8rYLdtGSGakWMLub0uH4PnigGTLbpo2GyVYYztEC7WkFn4kVh66+t+AaWs1BZMFa0W+KiqGLwcYYkFvgx/CMcZYYJfcGyM3VvAxY/Y4n7oprW28h6FCghEbd/DpXDVYPAbg2ryVQPaC0xvLTVZvl9qLIhiYC0uqf8afwZzuTXNIs4trp/USrOGGHQbGj7dvwbZAIeg5OAQ0fgIQLRTkY1dUB/emGocIXhZjWSe0T/ipncQ4WvBe5E9E/5NMei4iCeG3EeiWGfAPJ4Eihpytr4DxSWFHy+G/Xkg53sVFCILHdxYG8OdKcbi+TnPnSBs/gyxidz+T1Y5JipZgD/Nbq7prilHRZW/Z1iExBys92CWQdkwgagwGCo4eX666w/K10/9cXYpdLDjhfK1rL+ewM2XtwIj2E9Bi++kXbfB5Plamxt2kf1pBs5vk8xOuL+/cBicLMClCIeGyKdR03yBZiF6ea8OdFzQVPZXqq5GrKakkrr/i |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEYYAM8hYJKwYBBAHaRw8BAQdAwIvnhAN9OyVN9n3kfng1+99B4Xph6H4FRsYD | |
fa0Pbri0Em1veWNhdCA8aUBtb3kuY2F0PoiUBBMWCgA8FiEEHJ3A2hruXld0VnVi | |
B9jOg0Uu+BoFAmGADPICGwMFCwkIBwIDIgIBBhUKCQgLAgQWAgMBAh4HAheAAAoJ | |
EAfYzoNFLvgaPz4BALUKds08/3F0jqPhobF4lcPpPN0VOW417zlAvn28j49jAPwK | |
1oUiB2MvWkchru4aUezE5N7TGXP1mmkr0vQkccMECrg4BGGADPISCisGAQQBl1UB | |
BQEBB0ClTFYudI8r+SCONwwYK3zucnA8PaZbSDjrS11ezq2mawMBCAeIeAQYFgoA | |
IBYhBBydwNoa7l5XdFZ1YgfYzoNFLvgaBQJhgAzyAhsMAAoJEAfYzoNFLvga03oA | |
/2uBcAfn79/7YlBNfUhpuvqSqeCM32VTHPMJpj/faJmWAQD5B5FQSo8+LZsEH9Ml |
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
#!/usr/bin/env python3 | |
import argparse | |
import ipaddress | |
import os | |
INTERNAL_SUBNET = "192.168.0.0/24" | |
INTERNET_ADDRESS = "1.2.3.4" | |
INTERFACE = "vmbr0" | |
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 ( | |
"golang.org/x/net/ipv4" | |
"log" | |
"net" | |
"os" | |
"strconv" | |
"strings" | |
"syscall" |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
/** | |
* Respond to the request | |
* @param {Request} request | |
*/ | |
async function handleRequest(request) { | |
url = new URL(request.url) |
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 ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"reflect" | |
) | |
type N struct { |
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
# run as root | |
# create | |
mkdir -p /tmp/union/root /tmp/union/tmp | |
unionfs-fuse -o cow,dev,suid,allow_other /tmp/union/tmp=RW:/=RO /tmp/union/root | |
mount --bind /dev /tmp/union/root/dev | |
mount --bind /sys /tmp/union/root/sys | |
mount --bind /proc /tmp/union/root/proc | |
# enter |
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 -e | |
VERSION=1.23.2 | |
PROXY="" | |
cat <<EOF > /etc/modules-load.d/containerd.conf | |
overlay | |
br_netfilter | |
EOF | |
modprobe overlay |
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 -e | |
PROXY="" | |
export http_proxy="${PROXY}" https_proxy="${PROXY}" | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ |
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 walk | |
import ( | |
"errors" | |
"fmt" | |
"os" | |
"path/filepath" | |
"sort" | |
"sync" | |
"time" |
OlderNewer