$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
$ kubectl port-forward --address 0.0.0.0 -n ingress-nginx service/ingress-nginx-controller 8443:443
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
mvn org.antlr:antlr4-maven-plugin:help -Ddetail=tru |
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
owl-shop: | |
image: quay.io/cloudhut/owl-shop:sha-042112b | |
entrypoint: /bin/sh | |
command: -c "echo \"$$OWLSHOP_CONFIG_FILE\" > /tmp/config.yml; /app/owlshop" | |
environment: | |
CONFIG_FILEPATH: /tmp/config.yml | |
OWLSHOP_CONFIG_FILE: | | |
shop: | |
requestRate: 1 | |
interval: 0.1s |
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
https://medium.com/@ingridwickstevens/chat-with-your-local-documents-privategpt-lm-studio-c6ff94d0dfe3 | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\n | |
brew install make tcl-tk sqlite pyenv-virtualenv | |
curl https://pyenv.run | bash | |
export PATH="$HOME/.pyenv/bin:$PATH" |
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 sqlalchemy import create_engine | |
engine = create_engine('postgresql://postgres:postgres@postgres:5432/postgres', echo=False) | |
--- | |
import pandas as pd | |
with engine.connect() as connection: | |
df = pd.read_sql('ais', connection) | |
df |
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 apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
&&\ | |
curl -fsSL https://apt.releases.hashicorp.com/gpg | \ | |
sudo apt-key add - &&\ | |
sudo apt-add-repository \ | |
"deb [arch=$(dpkg --print-architecture)] https://apt.releases.hashicorp.com $(lsb_release -cs) main" &&\ |
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 apt-get remove \ | |
docker docker-engine docker.io containerd runc &&\ | |
sudo apt-get update &&\ | |
sudo apt-get install \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release &&\ | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \ |
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 | |
wget -qO - https://packagecloud.io/shiftkey/desktop/gpgkey | sudo tee /etc/apt/trusted.gpg.d/shiftkey-desktop.asc > /dev/null | |
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/shiftkey/desktop/any/ any main" > /etc/apt/sources.list.d/packagecloud-shiftkey-desktop.list' | |
sudo apt-get update | |
sudo apt install github-desktop |
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 | |
sqlite3 files.db 'CREATE TABLE files( id INTEGER PRIMARY KEY AUTOINCREMENT, sum TEXT NOT NULL, size INT NOT NULL, date DATE NOT NULL, directory TEXT NOT NULL, filename TEXT NOT NULL, extension TEXT NOT NULL);' | |
id=0 | |
find . -type f | while read file; do | |
IFS=$'\n' | |
sum=$(sha256sum $file | awk '{print $1}') | |
stat=$(stat -c %y,%s $file) | |
date=$(echo $stat | awk -F"," '{ print $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
find . -type f -name \*.txt -printf '%s|%p\n' |
NewerOlder