Skip to content

Instantly share code, notes, and snippets.

@CypherpunkSamurai
Last active January 14, 2022 15:40
Show Gist options
  • Select an option

  • Save CypherpunkSamurai/4c01d5b059c424db4509614aa1114b61 to your computer and use it in GitHub Desktop.

Select an option

Save CypherpunkSamurai/4c01d5b059c424db4509614aa1114b61 to your computer and use it in GitHub Desktop.
Gitpod Setup

Gitpod Setup

In gitpod terminal (Ctrl + Shift + P) Paste this

curl -kL https://gist.github.com/CypherpunkSamurai/4c01d5b059c424db4509614aa1114b61/raw/bb6e24732be6e7e1590c87504bd0843788650d3c/intelowl_gitpod_install.sh | sh

#!/bin/bash
echo Installing packages....
sudo apt-get install -yq libsasl2-dev python-dev libldap2-dev libssl-dev \
libfuzzy-dev
echo Formatting Code...
pip3 install black
black . --exclude "migrations|venv"
flake8 . --show-source --statistics
isort --profile black --filter-files --skip venv .
echo Installing packages
python3 -m venv venv
source venv/bin/activate
pip install pre-commit
pre-commit install
pip install -r requirements.txt
echo Requirements for IntelOwl
unzip -o -P infected tests/test_files.zip -d .
cp docker/env_file_app_template docker/env_file_app
cp docker/env_file_postgres_template docker/env_file_postgres
cp docker/env_file_integrations_template docker/env_file_integrations
sudo chmod u+x docker/scripts/coverage_test.sh
echo Ready....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment