Step 1
If any version of postman is installed we need to remove it
sudo rm -rf /opt/PostmanStep 2
| #!/bin/bash | |
| docker run --rm -it -v /usr/share/ollama/.ollama/:/root/.ollama -p 11435:11434 --cpuset-cpus=0,1 ollama/ollama | |
| docker run --rm -it -v /usr/share/ollama/.ollama/:/root/.ollama -p 11436:11434 --cpuset-cpus=2,3 ollama/ollama |
| # BASE IMAGE | |
| FROM node:18-slim AS base | |
| RUN apt update && apt install -y curl tini | |
| ENV PORT=3000 | |
| # Create app directory as example | |
| WORKDIR /app | |
| RUN yarn add express |
| CREATE EXTERNAL TABLE twingate_logs ( | |
| `event_type` string, | |
| `event` struct< | |
| `time`:string, | |
| `action`:string, | |
| `actor`:struct<`type`:string,`id`:string>, | |
| `targets`:array< | |
| struct< | |
| `version`:string, | |
| `type`:string, |
| helm -n user-myappspace list --all | |
| helm -n user-myappspace history myapp | |
| > check for which revision is still truggling, example: 9 - preparing upgrade | |
| helm -n user-myappspace rollback myapp 9 |
| <html><body><h1>It works!</h1> | |
| <p>This is the default web page for this server.</p> | |
| <p>The web server software is running but no content has been added, yet.</p> | |
| </body></html> |
| CREATE USER someuser WITH PASSWORD 'somepass'; | |
| GRANT ALL PRIVILEGES ON DATABASE somedb to someuser; | |
| -- on database | |
| GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO someuser; | |
| GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO someuser; |
| # -------------------------------------------------------------------------------------------------- | |
| export LANGUAGE=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| export EDITOR=nano | |
| # node comes first! | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm |
| docker run --rm -v "$HOME/.azure:/root/.azure:z" mcr.microsoft.com/azure-cli az account show |
| // using node v16.19.1 | |
| const crypto = require('node:crypto'); | |
| const algos = crypto.getHashes(); | |
| const plain = 'abcd'; | |
| const results = algos | |
| .map(algo => ({ | |
| algo, |