Skip to content

Instantly share code, notes, and snippets.

View dtaniwaki's full-sized avatar

Daisuke Taniwaki dtaniwaki

View GitHub Profile
@cablespaghetti
cablespaghetti / ecr-cred-updater.sh
Last active May 24, 2024 06:14
Automatic Updating Amazon ECR Credentials in Kubernetes
#!/bin/bash
# Get directory of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ $# -ne 1 ]]
then
echo "ERROR: This script expects the namespace name to be given as an argument"
echo "e.g. ./ecr-cred-updater.sh my-namespace"
exit 1
@maratori
maratori / .golangci.yml
Last active May 27, 2025 17:41
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.1.6
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@ramondeklein
ramondeklein / rename-aws-glue-table.py
Created March 2, 2021 18:49
Rename table in AWS glue (including partition scheme)
# This GIST can be used to rename a table in AWS Glue and keep the
# partitioning scheme intact.
import boto3
region = "eu-west-1"
database_name = "rdk-test"
table_name = "yt_uncompressed"
new_table_name = "nyc_taxiset"
client = boto3.client("glue", region_name=region)