Skip to content

Instantly share code, notes, and snippets.

@ZyqGitHub1
ZyqGitHub1 / README.md
Created March 9, 2023 02:19
Minio server with the Security Token Service (STS) and AssumeRole for temporary session tokens

MinIO Security Token Service (STS)

This is an example of setting up a Minio server with the Security Token Service (STS) and AssumeRole for temporary session tokens.

You must create a new Minio user to use STS, the default Minio access/secret won't work. The new user must have access to the objects you will be creating sessions for, the permissions of the created session are the intersection of the permissions of the STS user and the inline permissions requested when the session is created

Tested on 2020-04-06 with the current version of Minio. This is probably RELEASE.2020-04-04T05-39-31Z, though if using Homebrew on Mac OSX minio --version outputs DEVELOPMENT.GOGET so who knows.

@ZyqGitHub1
ZyqGitHub1 / ss.go
Created February 11, 2023 16:17 — forked from rgl/ss.go
take a screenshot of a specific Windows application window in pure Go
// +build windows
package screen
import (
"fmt"
"image"
"reflect"
"syscall"
"unsafe"
@ZyqGitHub1
ZyqGitHub1 / helpful-docker-commands.sh
Created September 29, 2020 07:58 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
@ZyqGitHub1
ZyqGitHub1 / ntfs-filenames.txt
Created March 24, 2020 04:51 — forked from doctaphred/ntfs-filenames.txt
Invalid characters for Windows filenames
Information from https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx :
Use any character in the current code page for a name, including Unicode
characters and characters in the extended character set (128–255), except
for the following:
- The following reserved characters:
< (less than)
> (greater than)
@ZyqGitHub1
ZyqGitHub1 / source.json
Last active April 20, 2024 02:19
hls-source
[
{
"id": "d240e1be-38aa-4356-88b8-d1febb48d95e",
"name": "色色资源站",
"uri": "https://www.emiao026.com",
"httpApi": "http://sscj8.com/inc/api.php",
"httpsApi": "http://sscj8.com/inc/sapi.php",
"type": "综合性资源"
},
{
@ZyqGitHub1
ZyqGitHub1 / tumblrSniffer.user.js
Last active October 3, 2019 06:43
Tampermonkey
// ==UserScript==
// @run-at document-start
// @name:en tumblr Sniffer
// @name tumblr 视频嗅探
// @name:zh-CN tumblr 视频嗅探
// @name:zh-TW tumblr 视频嗅探
// @description: tumblr 视频嗅探
// @description:zh-CN: tumblr 视频嗅探
// @description:zh-TW tumblr 视频嗅探