Skip to content

Instantly share code, notes, and snippets.

View Luvgreed's full-sized avatar

ジン Luvgreed

  • Hong Kong
View GitHub Profile
Pre-requisite :
1) install aws-s3 cli
2) create the project version folder in S3 Bucket (s3-versioncontrol):
AWS/S3/s3-versioncontrol/{projectID}/{version}
Step by step :
Step 1
From local to S3 version control bucket
aws s3 cp . s3://s3-versioncontrol/{projectID}/{version} --recursive
@Luvgreed
Luvgreed / MySQL
Last active January 25, 2019 02:19
UPDATE `<DB>`.`<Table>` SET `<col>`='<value>' WHERE `<col>`='<value>';
Emoji
1) DB : SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
2) Client : {charset : "utf8mb4"}
# Install Go on Ubuntu
VERSION="1.13.1"
OS="linux"
ARCH="amd64"
echo "downloading go ..."
curl -O https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz
echo "unzip go to /usr/local ..."
tar -C /usr/local -xvzf go$VERSION.$OS-$ARCH.tar.gz
echo "rm $go$VERSION.$OS-$ARCH.tar.gz ..."
rm -rf go$VERSION.$OS-$ARCH.tar.gz