- Off-the-shelf Services
- OpenAI API (GPT models)
- Google Cloud AI
- Azure Cognitive Services
- Hugging Face models
flowchart TD
Start([Start]) --> Q1{Need complete<br/>hardware control?}
Q1 -->|Yes| Q2{Have dedicated<br/>IT team?}
Q2 -->|Yes| BM[Bare Metal Setup]
Q2 -->|No| VPS[Virtual Private<br/>Servers]
Q1 -->|No| Q3{Budget<br/>Constraints?}
This file contains 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
#!/usr/bin/env bash | |
.EXPORT_ALL_VARIABLES: | |
SHELL = /bin/bash | |
VENV_NAME = venv | |
PRODUCT = myapp | |
version=$(shell cat .version) | |
.PHONY: virtualenv |
This file contains 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 | |
du -hsx -- * | sort -rh | head -10 |
This file contains 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 | |
# Set $GITHUB_API_USER and $GITHUB_API_TOKEN | |
# | |
set +x | |
GITHUB_API_HEADER_ACCEPT="Accept: application/vnd.github.v3+json" | |
temp=`basename $0` | |
TMPFILE=`mktemp /tmp/${temp}.XXXXXX` || exit 1 | |
curl --user "$GITHUB_API_USER:$GITHUB_API_TOKEN" -s "https://api.github.com/rate_limit" -H "${GITHUB_API_HEADER_ACCEPT}" >> $TMPFILE |
This file contains 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/sh | |
dnf install kernel-devel-$(uname -r) kernel-headers perl gcc make elfutils-libelf-devel | |
cd /run/media/`whoami`/VB* | |
echo "./VBoxLinuxAdditions.run" |
This file contains 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
cpu () { | |
echo $HOSTNAME.cpu $(mpstat 1 1 | awk '$13 ~ /[0-9.]+/ { print 100 - $13 }') $(date +%s) | |
} | |
disk_io () { | |
echo $HOSTNAME.disk_io $(iostat -d -z ALL | awk 'NF==6 {s+=$2} END {print s}') $(date +%s) | |
} | |
disk_usage () { | |
echo $HOSTNAME.disk_usage $(df -k / | awk 'NR > 1 {print $5}' | cut -d "%" -f 1) $(date +%s) |
This file contains 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 | |
### your registry must have the following environment var set | |
# REGISTRY_STORAGE_DELETE_ENABLED=true | |
### replace YOUR_SERVER with corect info | |
REGISTRY_URL=https://YOUR_SERVER:5000 | |
### host registry volume folder | |
REGISTRY_ROOT=/registry | |
### container to execute garbage-collect | |
CONTAINER_NAME=services_registry.1 |
This file contains 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 | |
sudo yum install -y wget git | |
wget -O bosh https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-2.0.42-linux-amd64 | |
sudo mv bosh /usr/local/bin/bosh | |
sudo chmod +x /usr/local/bin/bosh | |
sudo yum install -y gcc gcc-c++ ruby ruby-devel mysql-devel postgresql-devel postgresql-libs sqlite-devel libxslt-devel libxml2-devel patch openssl | |
gem install yajl-ruby |
NewerOlder