If you want to store all stdout while runing an interactive bash:
curl -Lo /usr/local/bin/cybash https://gist.githubusercontent.com/lalyos/94cef8ca8bb3087387312f7f3e775e3b/raw/cybash
chmod +x /usr/local/bin/cybash
| services: | |
| backend: | |
| image: web:v7 | |
| build: | |
| context: https://github.com/lalyos/docker-lufi-2023-09-26.git | |
| tags: | |
| - lalyos/web | |
| - ttl.sh/web | |
| environment: | |
| - TITLE=Dinner [dev] |
| services: | |
| coffee: | |
| image: lalyos/12factor | |
| ports: | |
| - 80 | |
| environment: | |
| - TITLE=Coffebreak LEVEL 2. | |
| - COLOR=gray | |
| backend: | |
| image: lalyos/12factor |
| package greet | |
| import ( | |
| "fmt" | |
| ) | |
| func Greet() { | |
| fmt.Println("Greating from golpay package [gist] ... v1.3") | |
| } |
| FROM alpine | |
| RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing lolcat curl | |
| CMD curl -sL https://gist.githubusercontent.com/lalyos/99341041e6b513a05ac945c897ef518e/raw/network.txt | lolcat |
I was playing with https://flems.io/ and wondered how it stores data.
Example link: http://flems.io
| <div id="app"></div> |
| - let d = 100, o = -.5*d; | |
| - let sw = .1*d, r = .5*(d - sw); | |
| - let len = 2*Math.PI*r; | |
| .countdown | |
| svg(viewBox=[o, o, d, d].join(' ') stroke-width=sw) | |
| circle(r=r) | |
| circle(r=r stroke-dasharray=len stroke-dashoffset=`${len}px`) |
| #!/usr/bin/env bash | |
| VERSION=4.0.1 | |
| SCRIPT=`basename "$0"` | |
| APPNAME="My App" | |
| APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
| OSX_VERSION=`sw_vers -productVersion` | |
| PWD=`pwd` | |
| function usage { |
| ## containerd prereq | |
| modprobe br_netfilter | |
| modprobe overlay | |
| cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf | |
| overlay | |
| br_netfilter | |
| EOF | |
| cat <<EOF | sudo tee /etc/sysctl.d/99-kubernetes-cri.conf |