sudo apt-get update
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
loginctl enable-linger $USER
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
# https://boto3.amazonaws.com/v1/documentation/api/latest/guide/quickstart.html | |
import boto3 | |
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html | |
s3Client = boto3.client('s3') | |
s3 = boto3.resource('s3') | |
# https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.create_multipart_upload | |
multipart_upload = s3Client.create_multipart_upload( | |
ACL='public-read', |
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
// npm i --save dotenv aws-sdk | |
const dotenv = require('dotenv') | |
const path = require('path') | |
const fs = require('fs') | |
const AWS = require('aws-sdk'); | |
dotenv.config({ | |
path: path.join(__dirname, '.env'), | |
debug: true, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>GDrive File Upload</title> | |
<meta charset="utf-8" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.0/css/bootstrap.min.css" | |
integrity="sha512-F7WyTLiiiPqvu2pGumDR15med0MDkUIo5VTVyyfECR5DZmCnDhti9q5VID02ItWjq6fvDfMaBaDl2J3WdL1uxA==" | |
crossorigin="anonymous" referrerpolicy="no-referrer" /> |
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
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'numberToWords' | |
}) | |
export class NumberToWordsPipe implements PipeTransform { | |
a = [ | |
'', | |
'one ', |