Skip to content

Instantly share code, notes, and snippets.

View rwcitek's full-sized avatar

Robert Citek rwcitek

View GitHub Profile
@rwcitek
rwcitek / data.docker.md
Last active March 18, 2024 00:08
Data only in Docker image

Creating a data-only Docker image

echo "Hello, world" > data.txt

{ cat <<'eof'
from scratch
workdir /data
copy data.txt .
eof
@rwcitek
rwcitek / utf-8-scraper.ipynb
Created January 21, 2024 15:37
Create UTF-8 Dictionary
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / sigkills.md
Last active January 18, 2024 00:51
process kill signals in Docker

Proccess and kill signals

These are best practiced in a virtual environment. Docker will do.

$ docker run --rm -it ubuntu /bin/bash

Here we create a background process, capture its process id ( PID ), and then kill it.

@rwcitek
rwcitek / ctes.ipynb
Last active January 15, 2024 00:16
ctes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / angular.docker.md
Created December 27, 2023 15:07
Angular in Docker

Angular in Docker

cut -c3- <<'eof' > Dockerfile
  FROM node
  
  WORKDIR /app
  SHELL ["/bin/bash","-c"]
  
 RUN apt-get update &amp;&amp; apt-get dist-upgrade -y
@rwcitek
rwcitek / gql.md
Last active December 24, 2023 14:08
GraphQL, FastAPI, Areadne in Docker

Create background container

docker container run --rm -d --name gql -p 8000:80 ubuntu sleep inf
sleep 2

Configure container

{ cat <<'eof2'
@rwcitek
rwcitek / iis.docker.md
Last active December 24, 2023 13:39
.NET Core in Docker

Create a background container

docker container run \
  --rm \
  --detach \
  --name iis \
  --publish 8080:5000 \
 mcr.microsoft.com/dotnet/sdk:latest \
@rwcitek
rwcitek / ph-public-data.ipynb
Last active November 18, 2023 22:22
ph-public-data.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / pg4admin.docker.md
Last active March 27, 2024 23:41
pg4admin in Docker
@rwcitek
rwcitek / sml.nj.docker.md
Last active November 4, 2023 04:23
sml/nj in Docker