Go to https://github.com/yogendra/learn-llm/blob/main/example-01/DEMO.md
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
FROM python:3.9-slim-buster | |
WORKDIR /app | |
COPY requirements.txt requirements.txt | |
RUN pip install --no-cache-dir -r requirements.txt | |
COPY main.py . | |
EXPOSE 8080 |
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
services: | |
yugabyted-0: | |
container_name: yugabyted-0 | |
hostname: yugabyted-0 | |
image: yugabytedb/yugabyte:2.20.3.1-b2 | |
environment: | |
YSQL_PASSWORD: yugabyte | |
PGPASSWORD: yugabyte | |
PGSSLMODE: prefer | |
command: |
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
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: local-storage-yb-master | |
provisioner: kubernetes.io/no-provisioner | |
volumeBindingMode: WaitForFirstConsumer |
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
sudo yum install -qy https://s3.us-west-2.amazonaws.com/downloads.yugabyte.com/repos/reporpms/yb-yum-repo-1.1-0.noarch.rpm | |
sudo yum install -qy https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm | |
sudo yum install -qy pgdg-redhat-repo oracle-instant-clients-repo | |
sudo dnf -qy module disable postgresql | |
sudo yum install -qy --downloadonly --downloaddir=yb-voyager/ perl-open.noarch | |
sudo yum install -qy --downloadonly --downloaddir=yb-voyager/ yb-voyager | |
tar -czvf yb-voyager-centos8-airgapped.tgz |
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
BEGIN:VCARD | |
VERSION:2.1 | |
N:Limpanichsakul;Natta;;; | |
FN:Natta Limpanichsakul | |
X-ANDROID-CUSTOM:vnd.android.cursor.item/nickname;Sea;1;;;;;;;;;;;;; | |
TEL;CELL:+66950368179 | |
TEL;WORK:+6626931989 | |
EMAIL;HOME:natta.l@extend-it-resource.com | |
ADR;HOME:;;;Bangkok;;;Thailand | |
ORG:X10-IT |
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
-- Source Website: https://data.cityofchicago.org/Education/Chicago-Public-Schools-Progress-Report-Cards-2011-/9xs2-f89t | |
-- Source CSV: https://data.cityofchicago.org/api/views/9xs2-f89t/rows.csv | |
-- Coverted with https://sqlizer.io with minor tweaks (table name and couple of column names changed) | |
DROP TABLE IF EXISTS schools; | |
CREATE TABLE schools | |
( | |
"School ID" int8, | |
"Name of School" text, | |
"Elementary, Middle, or High School" varchar(2), | |
"Street Address" varchar(100), |
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
echo "vagrant ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/vagrant | |
sed -i "s/^#UseDNS no/UseDNS no/g" /etc/ssh/sshd_config | |
curl -L https://raw.githubusercontent.com/hashicorp/vagrant/main/keys/vagrant.pub >> ~/.ssh/authorized_keys | |
apt update | |
apt install open-vm-tools -qqy | |
curl https://raw.githubusercontent.com/boxcutter/ubuntu/master/script/cleanup.sh | bash |
There are many instances that I need to do this. Especially if I am installing K8s in an internet restricted environment (example: [Install TKG in Internet restricted env][install-tkg-internet-restricted])
So I like to use [docker registry][docker-registry] and [mkcert][mkcert] to play with this scenario
-
Create directories for certs and data
mkdir -p data certs
NewerOlder