Skip to content

Instantly share code, notes, and snippets.

View TANK2003's full-sized avatar

Karl TAYOU TANK2003

View GitHub Profile
@reed-lawrence
reed-lawrence / dom.service.ts
Last active July 7, 2022 18:37 — forked from caroso1222/dom.service.ts
Service to dynamically append Angular components to the body
import {
Injectable,
Injector,
ComponentFactoryResolver,
EmbeddedViewRef,
ApplicationRef,
ComponentRef
} from '@angular/core';
@Injectable()
@feelinc
feelinc / UploadDirS3.py
Last active May 15, 2024 15:02
Upload folder contents to AWS S3
#!/usr/bin/python
import os
import sys
import boto3
# get an access token, local (from) directory, and S3 (to) directory
# from the command-line
local_directory, bucket, destination = sys.argv[1:4]