Skip to content

Instantly share code, notes, and snippets.

View sofianhamiti's full-sized avatar

Sofian Hamiti sofianhamiti

View GitHub Profile
{
"columns": [
"MedInc",
"HouseAge",
"AveRooms",
"AveBedrms",
"Population",
"AveOccup",
"Latitude",
"Longitude"
.
├── .github/workflows      # CI/CD workflows
├── cfg                    # Config files for model_build and model_deploy
├── docker                 # Dockerfiles
├── experiment             # Scripts and notebooks for exploration
├── scripts                # Helper scripts to run jobs, pipeline, etc.
├── src                    # Source files for model_build and model_deploy
├── test                   # Testing scripts (e.g: unit, integration, load)
├── requirements.txt       # Dependencies

├── .gitignore

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::<YOUR ACCOUNT ID>:oidc-provider/token.actions.githubusercontent.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
#!/bin/bash
set -e
#################################################
## INSTALL DEPENDENCIES AND PULL CONTAINER IMAGE
#################################################
echo ==INSTALLING DEPENDENCIES==
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/pip install -U jupyter-server-proxy
/usr/bin/docker pull heartexlabs/label-studio:latest
#!/bin/bash
# /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/pip install -U keytar jupyter-server-proxy
echo == INSTALLING CODE-SERVER ==
curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.12.0
#########################################
### INTEGRATE CODE-SERVER WITH JUPYTER
#########################################
echo == UPDATING THE JUPYTER SERVER CONFIG ==
#!/bin/bash
# REPLACE HOST WITH YOUR NOTEBOOK INSTANCE URL BEFORE RUNNING THE COMMAND
docker run \
-it \
-p 8080:8080 \
-v /home/ec2-user/SageMaker/mydata:/label-studio/data \
heartexlabs/label-studio:latest label-studio \
--host https://your-notebook-instance-name.notebook.your-region.sagemaker.aws/proxy/8080
#!/bin/bash
mkdir -p vscode
cd vscode
sudo su
curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.9.1
exit
#!/usr/bin/env bash
# install code-server with Anaconda
conda install -y -c conda-forge code-server
# run code-server with no auth is for illustrative purposes.
# Make sure you enable authentication in your environment https://coder.com/docs/code-server/latest
code-server --auth none
import json
import boto3
import logging
from botocore.config import Config
logger = logging.getLogger()
logger.setLevel(logging.INFO)
config = Config(retries = {'max_attempts': 10,'mode': 'standard'})