Skip to content

Instantly share code, notes, and snippets.

@hiyali
hiyali / upload-file-to-amazon-s3-golang.md
Last active November 20, 2023 08:32
Upload file to amazon s3 with s3 filepath on golang

syncer.go

/*
  https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object-acl.html
  https://docs.aws.amazon.com/zh_cn/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html
  https://github.com/awslabs/aws-go-wordfreq-sample/blob/master/cmd/uploads3/main.go
  https://docs.aws.amazon.com/sdk-for-go/api/aws/

  1. Create bucket in s3 & get the keys
  - login to UI web aws s3 interface
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 24, 2024 11:23
crack activate Office on mac with license file
anonymous
anonymous / index.html
Created August 1, 2017 18:22
SIMON GAME FREECODECAMP
<div>
<h1 class="title"><a href="https://en.wikipedia.org/wiki/Simon_(game)" target="blanc">SIMON-GAME</a></h1>
<div class="container">
<div class="game-circle">
<div class="box green" id="green" ></div>
<div class="box red" id="red"></div>
<div class="box yellow" id="yellow"></div>
<div class="box blue" id="blue"></div>
<div style="display: none">
<audio id="s1">
@mitchwongho
mitchwongho / Docker
Last active November 29, 2023 06:36
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash