Skip to content

Instantly share code, notes, and snippets.

import numpy as np
from dataclasses import dataclass
from typing import Dict, List, Optional
import random
from enum import Enum
import logging
import os
from datetime import datetime
# Configure logging
[
{
"title": "ABCC11",
"content": "",
"level": 1,
"index": 0,
"sentences": []
},
{
"title": "Overview",
{
"sections": [
{
"index": 1,
"title": "Lead",
"sentence_evaluations": [
{
"index": 0,
"sentence": "**ATP-binding cassette transporter sub-family C member 11**, also **MRP8** (*Multidrug Resistance-Related Protein 8*), is a [membrane transporter](https://en.wikipedia.org/wiki/Membrane_transport_protein) that exports certain molecules from inside a cell.",
"requirement_evaluations": [
[
{
"title": "ABCC11",
"content": "",
"level": 1,
"index": 0,
"sentences": []
},
{
"title": "Lead",
{
"groups": [
{
"description": "Gene nomenclature guidelines",
"category": "Content",
"requirements": [
{
"id": "R1",
"description": "**Must** include human genes/proteins and orthologs in other species within the scope of the article.",
"reference": "The scope of a gene/protein article is the human gene/protein (including all splice variants derived from that gene) as well as orthologs (as listed in HomoloGene) that exist in other species.",
import json
from phi.model.openai import OpenAIChat
from pathlib import Path
from phi.tools.file import FileTools
from typing import Iterator
from shutil import rmtree
from pydantic import BaseModel
from typing import Any
from phi.agent import Agent, RunResponse
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model Badge {

Nginx SSL Configuration Script Summary

Overview

This bash script automates the process of configuring Nginx with SSL for a specified domain and proxying requests to a service running on a specified port within a Docker container.

Steps

  1. Save the Script: Copy the script and save it to a file, for example, setup.sh.
  2. Make the Script Executable: Make the script executable using the chmod command.
  3. Run the Script: Execute the script with three arguments:
  • ``: The domain name you want to configure.
@sayertindall
sayertindall / docker-compose.yml
Created April 9, 2024 23:50
Sets up nginx reverse proxy with app running in docker for EC2 host
version: '2'
services:
app:
image: 471112699420.dkr.ecr.us-east-2.amazonaws.com/joba-backend
environment:
VIRTUAL_PORT: 3001
VIRTUAL_HOST: beta-api.joba.network
LETSENCRYPT_HOST: beta-api.joba.network
LETSENCRYPT_EMAIL: sayer@joba.network
@sayertindall
sayertindall / docker-ubuntu.sh
Last active July 15, 2025 17:08
This script automates the provisioning of an Ubuntu-based EC2 instance with Docker and AWS CLI. It updates the system, installs Docker CE by setting up its official repository, enables Docker to start on boot, and adds the current user to the Docker group for sudo-less commands. The script also installs AWS CLI v2 for command-line interaction w…
#!/usr/bin/env bash
set -e
# Variables
USER=${SUDO_USER:-$(whoami)}
CODENAME=$(. /etc/os-release && echo "$VERSION_CODENAME")
ARCH=$(dpkg --print-architecture)
# Update APT and install prerequisites
apt update