Skip to content

Instantly share code, notes, and snippets.

View sofianhamiti's full-sized avatar

Sofian Hamiti sofianhamiti

View GitHub Profile
cd /home
apt-get update && sudo apt-get install -y gnupg software-properties-common
# Install the HashiCorp GPG key.
wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
# Verify the key's fingerprint.
#!/bin/bash
set -eux
source activate studio
pip install jupyterlab_s3_browser
jupyter serverextension enable --py jupyterlab_s3_browser
{
"data-root": "/home/ec2-user/SageMaker/docker",
"runtimes": {
"nvidia": {
"path": "nvidia-container-runtime",
"runtimeArgs": [] }
}
}
FROM python:3.10.9
# INSTALL CODE-SERVER IN CONTAINER
RUN curl -fsSL https://code-server.dev/install.sh | sh -s -- --version=4.9.1
# POINT VS CODE (IN CONTAINER) TO THE CONFIGURATION (ON NOTEBOOK INSTANCE)
# ENV XDG_DATA_HOME=/home/SageMaker/vscode-config
{
"nameShort": "code-server",
"nameLong": "code-server",
"applicationName": "code-server",
"dataFolderName": ".code-server",
"win32MutexName": "codeserver",
"licenseName": "MIT",
"licenseUrl": "https://github.com/coder/code-server/blob/main/LICENSE",
"serverGreeting": [],
"serverLicense": [],
{
"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