- AWS Account
- Linux(like) System
- awscli
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
| #!/bin/bash | |
| # Command to transfer | |
| export VIDEO_DIRECTORY=/storage/VIDEO/HOME/$(python3 -c "import datetime;print(datetime.datetime.now().strftime('%Y%m%d-video-dump'), end='')") | |
| echo Making directory: ${VIDEO_DIRECTORY} | |
| mkdir ${VIDEO_DIRECTORY} | |
| echo Copying... | |
| rsync --progress -h /media/monkut/JVCCAM_MEM/AVCHD/BDMV/STREAM/*.MTS ${VIDEO_DIRECTORY} |
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
| """ | |
| Get the latest model assets key from resulting sagemaker training session | |
| """ | |
| import boto3 | |
| S3 = boto3.client('s3') | |
| def get_latest_model_assets_key(bucket: str, prefix: str): | |
| model_assets = [] | |
| paginator = S3.get_paginator('list_objects') |
Follow this guide to install WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Get your build tools and python required libraries installed:
This page describes how a project is managed using github organizational projects
github flow is used for development.
When an "Assignee" takes a task, they create a "Feature branch" and develop their code in that branch. When task is complete a PR (Pull Request) is created. A PM or Lead (and relevant project members) reviews the PR, when the PR passes review a PM or Lead will merge the PR into the master branch.
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:GetRole", | |
| "iam:PutRolePolicy" | |
| ], | |
| "Resource": [ |
Setup a big empty partition in ext4 and assign to / root.
Proceed with install
This assumes you have the latest Ubuntu Desktop 18.04 image on a USB key.
Go the iso download and burn key with Etcher
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 os | |
| import csv | |
| from multiprocessing import cpu_count, Pool | |
| def process_csv(args): | |
| filepath, encoding = args | |
| unique_ids = set() | |
| with open(filepath, 'r', encoding=encoding) as in_f: | |
| reader = csv.reader(in_f) |
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 datetime | |
| from pandas.tseries.holiday import AbstractHolidayCalendar, Holiday, sunday_to_monday, MO | |
| from pandas.tseries.offsets import Day, CustomBusinessDay, DateOffset | |
| class JapanBusinessCalendar(AbstractHolidayCalendar): | |
| rules = [ | |
| Holiday('New Years Day', month=1, day=1), | |
| Holiday('Coming of Age Day', month=1, day=8), # second monday of Jan | |
| Holiday('National Foundation Day', month=2, day=11, observance=sunday_to_monday), # observed monday if falls on Sunday |