This file contains hidden or 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 | |
| def decode_bytes(key): | |
| ESCAPE_BYTE = b'\x00' | |
| BYTES_ENDING = b'\x01' | |
| ESCAPE_00 = b'\xff' | |
| val = [] | |
| while len(key) > 0: |
This file contains hidden or 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 | |
| import fdb | |
| fdb.api_version(710) | |
| db = fdb.open() | |
| begin = b'\x00' | |
| end = b'\xFF' | |
| for key in fdb.locality.get_boundary_keys(db, begin, end): | |
| print(key) |
This file contains hidden or 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
| # encoding: utf-8 | |
| import os | |
| import argparse | |
| import boto3 | |
| from botocore.client import Config | |
| if __name__ == '__main__': | |
| parser = argparse.ArgumentParser() |
This file contains hidden or 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 cat <<EOF >build_env.dockerfile | |
| FROM ubuntu:latest | |
| ARG UNAME=docker | |
| ARG UID=1000 | |
| ARG GID=1000 | |
| RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && \ | |
| sed -i 's/archive.ubuntu.com/mirrors.cloud.tencent.com/g' /etc/apt/sources.list && \ | |
| sed -i 's/security.ubuntu.com/mirrors.cloud.tencent.com/g' /etc/apt/sources.list && \ | |
| apt-get update && \ |
This file contains hidden or 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 | |
| cat <<EOF >build_env.dockerfile | |
| FROM debian:latest | |
| ARG UNAME=docker | |
| ARG UID=1000 | |
| ARG GID=1000 | |
| RUN apt update && apt install sudo | |
| RUN groupadd -g \$GID -o \$UNAME | |
| RUN useradd -m -u \$UID -g \$GID -o -s /bin/bash \$UNAME |
This file contains hidden or 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 | |
| who=w41ter | |
| server_list=() | |
| sudo apt-get update -y | |
| sudo apt-get install -y apt-transport-https | |
| # install essential tools | |
| sudo apt-get install -y \ |