Skip to content

Instantly share code, notes, and snippets.

View jfut's full-sized avatar

Jun Futagawa jfut

View GitHub Profile
@jfut
jfut / aws-login
Created December 29, 2022 01:30
aws-login
#!/bin/bash
#
# AWS login to the management console or instance with Session Manager or SSH
#
# Require: aws-vault
#
# Copyright (c) 2022 Jun Futagawa (jfut)
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
@jfut
jfut / aws-secret-cli
Last active March 26, 2023 09:14
aws-secret-cli
#!/bin/bash
#
# AWS Secrets Manager CLI for role based release files
#
# Copyright (c) 2023 Jun Futagawa (jfut)
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
# - ENV/release/secret.conf
@jfut
jfut / wget-mirror-adjust
Last active August 7, 2023 07:31
wget-mirror-adjust
#!/bin/bash
#
# Mirror the page without extensions as it is.
#
# Copyright (c) 2023 Jun Futagawa (jfut)
#
# This software is released under the MIT License.
# http://opensource.org/licenses/mit-license.php
set -uo pipefail
@jfut
jfut / session.go
Last active October 17, 2024 07:52
echo + gorilla/sessions: Session Management Utility Functions
// echo + gorilla/sessions: Session Management Utility Functions
//
// Copyright (c) 2024 Jun Futagawa (jfut)
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
package common
import (
@jfut
jfut / csrf_token.go
Last active November 22, 2024 09:56
echo + go-ozzo/ozzo-validation: CSRF Token Validation
// echo: CSRF Token Management with Session
//
// Copyright (c) 2024 Jun Futagawa (jfut)
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
package web
import (