- Una máquina Ubuntu o Debian con salida a Internet e IP fija en la red local
- Al menos, 1 GB más de RAM de la RAM a asignar a la VM
- Al menos, 20 GB de disco libre para el disco virtual de la VM
This file contains hidden or 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
# Dockerfile for a Rails app | |
# | |
# Based on http://blog.palominolabs.com/2014/05/12/introduction-to-docker-with-rails/ | |
FROM ubuntu:precise | |
RUN apt-get update -q | |
# Install cURL | |
RUN apt-get install -qy curl |
This file contains hidden or 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 | |
# | |
# GET.bash - a little HTTP client in pure Bourne Again Shell | |
# | |
# I mean "pure" as "this does not call even /bin/cat". | |
# | |
# Usage: GET.bash http://server[:port]/[whatever] | |
# | |
# Outputs document to stdout. | |
# |
This file contains hidden or 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
# GET/POST against an old server | |
import ssl | |
import requests | |
from requests.adapters import HTTPAdapter | |
from requests.packages.urllib3.poolmanager import PoolManager | |
class TLSv1Adapter(HTTPAdapter): | |
def init_poolmanager(self, connections, maxsize, block=False): |
Después de descubrir, accidentalmente, que las rabas son pasiegas y están hechas con tripa de cerdo según llama3, he decidido hacer una pequeña investigación sobre qué opinan otros modelos soportados por ollama.
Para ello, he formulado la misma consulta una única vez en cada uno de varios modelos elegidos más o menos al azar. Por limitaciones de
This file contains hidden or 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 | |
PART="$(/usr/sbin/pvs --noheadings --options pv_name | head -1)" | |
# Remove spaces | |
PART="${PART// }" | |
DISK="${PART%[0-9]*}" | |
PART_NO="${PART#${DISK}}" | |
echo "Resizing partition ${PART_NO} of disk ${DISK}" | |
/usr/sbin/parted "${DISK}" resizepart "${PART_NO}" 100% || exit 1 | |
/usr/sbin/pvresize "${PART}" |