I hereby claim:
- I am mvasilenko on github.
- I am mvasilenko (https://keybase.io/mvasilenko) on keybase.
- I have a public key ASASSXmI8z0EAqmbnrGYI04yWDdRLrffy8uXpNl6aXd55wo
To claim this, I am signing this object:
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: ns1 | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: ns1-sa |
# set your CloudFlare key & email | |
export auth_email=$CLOUDFLARE_EMAIL | |
export auth_key=$CLOUDFLARE_TOKEN | |
# list your DNS zones hosted at CloudFlare | |
curl -s -X GET "https://api.cloudflare.com/client/v4/zones/?per_page=100" -H "X-Auth-Email: $auth_email" -H "X-Auth-Key: $auth_key" -H "Content-Type: application/json"| jq -r '.result[] | "\(.id) \(.name)"' | |
# expected output: | |
# a3c9c7d3861e52cf23c835102c258d63 example1.com | |
# f47d1debb65621ca89039b9fbfeb726a example2.com |
# for importing cloudflare hosted dns zones into terraform | |
# list zones | |
curl -s -X GET "https://api.cloudflare.com/client/v4/zones/?per_page=100" -H "X-Auth-Email: $auth_email" -H "X-Auth-Key: $auth_key" -H "Content-Type: application/json"| jq -r '.result[] | "\(.id) \(.name)"' | |
# list records at the zone 1234567890 | |
curl -X GET "https://api.cloudflare.com/client/v4/zones/1234567890/dns_records?per_page=100" -H "X-Auth-Email: $auth_email" -H "X-Auth-Key: $auth_key" -H "Content-Type: application/json"| jq -r '.result[] | "\(.id) \(.name) |
I hereby claim:
To claim this, I am signing this object:
import csv | |
import sys | |
csv.field_size_limit(sys.maxsize) | |
MULTILINE_DELIMITER = "2021-09-" | |
FILENAME="test.csv" | |
PROGRESS_EVERY_LINES=1000000 | |
print("Reading RDS csvlog, removing multilines") |
import argparse | |
import requests | |
import os | |
import sys | |
import yaml | |
headers = {"Authorization": "token {}".format( | |
os.environ.get('GITHUB_ADMIN_ORG_READ_TOKEN', ''))} | |
# Remove the submodule entry from .git/config | |
git submodule deinit -f path/to/submodule | |
# Remove the submodule directory from the superproject's .git/modules directory | |
rm -rf .git/modules/path/to/submodule | |
# Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule | |
git rm -f path/to/submodule |
""" Fetches all repos under a git organization | |
and returns last committer to master, date of commit, count of open dependabot security issues with high and critical severity | |
Results sorted by commit date | |
Replace ORG_NAME, USERNAME, and GH_TOKEN variables | |
GH_TOKEN required for authentication | |
This will use Rate limit at a rate of 1 per repo """ | |
import os | |
import json |
aws ec2 describe-instances --query 'Reservations[].Instances[].[PrivateIpAddress,Tags[?Key==`Name`].Value[]]' --output text | sed '$!N;s/\n/ /' |
apiVersion: v1 | |
data: | |
mapRoles: | | |
- rolearn: arn:aws:iam::661556513509:role/eksctl-aws-eks-cluster-1-nodegrou-NodeInstanceRole-KSVSFUXWT7C2 | |
username: system:node:{{EC2PrivateDNSName}} | |
groups: | |
- system:bootstrappers | |
- system:nodes | |
- eks-console-dashboard-full-access-group | |
- rolearn: arn:aws:iam::661556513509:role/AWSReservedSSO_AdministratorAccess_fb8ce9637ede3a97 |