When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| Rank | Type | Prefix/Suffix | |
|---|---|---|---|
| 1. | Prefix | my+ | |
| 2. | Suffix | +online | |
| 3. | Prefix | the+ | |
| 4. | Suffix | +web | |
| 5. | Suffix | +media | |
| 6. | Prefix | web+ | |
| 7. | Suffix | +world | |
| 8. | Suffix | +net | |
| 9. | Prefix | go+ |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
| #!/bin/bash | |
| KUBERNETES=https://$KUBERNETES_SERVICE_HOST:$KUBERNETES_SERVICE_PORT | |
| TOKEN=`cat /var/run/secrets/kubernetes.io/serviceaccount/token` | |
| POD=`hostname` | |
| curl -s -k -H "Authorization: Bearer $TOKEN" $KUBERNETES/api/v1/namespaces/$KUBERNETES_NAMESPACE/pods/$POD | grep -i hostIp | cut -d "\"" -f 4 |
| my_app/ | |
| management/ | |
| migrations/ | |
| templates/ | |
| templatetags/ | |
| __init__.py | |
| admin.py | |
| apps.py | |
| context_processors.py | |
| exceptions.py |