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
// 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 ( |
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
// 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 ( |
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 | |
# | |
# 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 |
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 | |
# | |
# 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 |
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 | |
# | |
# 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 |
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 | |
# | |
# Monit alert to Slack Webhook | |
# | |
# Configuration: | |
# | |
# - touch /etc/monit-slack-notify.conf | |
# - chmod 600 /etc/monit-slack-notify.conf | |
# - vi /etc/monit-slack-notify.conf | |
# |
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 | |
# | |
# AWS Security Group dump | |
# | |
# Supported name resolution targets: | |
# | |
# - EC2 | |
# - RDS | |
# - RDS Procy | |
# - ElastiCache |
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
@echo off | |
:: | |
:: フルバックアップ | |
:: | |
:: 1. robocopy バックアップ | |
:: 2. バックアップ元のすべてのファイルのアーカイブ属性を Off に設定 | |
:: 3. バックアップ先ディレクトリの隠し属性削除 | |
:: 注意: 1. 実行後、2. の実行までに更新されたファイルは、 | |
:: バックアップから漏れますが許容することにします。 | |
:: |
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 | |
# | |
# scoop list for migration | |
APP_FAILED="" | |
APP_UNKOWN="" | |
APP_GLOBAL="" | |
APP_USER="" | |
IFS=' |
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
diff --git a/admin/tool/dbtransfer/cli/migrate.php b/admin/tool/dbtransfer/cli/migrate.php | |
index 0d32e2ae..dea01740 100644 | |
--- a/admin/tool/dbtransfer/cli/migrate.php | |
+++ b/admin/tool/dbtransfer/cli/migrate.php | |
@@ -49,6 +49,10 @@ Options: | |
--dbport=NUMBER Database port. | |
--prefix=STRING Table prefix for above database tables. | |
--dbsocket=PATH Use database sockets. Available for some databases only. | |
+--dbcollation=COLLATION Use database collation for mysql/mariadb | |
+-r, --retry=BOOLEAN Retry to copy tables. If the number of records is the |
NewerOlder