Skip to content

Instantly share code, notes, and snippets.

View rwcitek's full-sized avatar

Robert Citek rwcitek

View GitHub Profile
@rwcitek
rwcitek / homebrew.md
Last active April 16, 2024 19:57
Installing and running Homebrew under Ubuntu in Docker
@rwcitek
rwcitek / windows.wsl2.docker.md
Last active April 16, 2024 19:56
Installing Docker on Windows without Docker Desktop

Installing Docker on Windows without Docker Desktop

WSL2 [1]

Newer versions of Windows

Open PowerShell with Admin rights and run wsl --install -d Ubuntu-22.04.

Older versions of Windows

@rwcitek
rwcitek / 01-selenium.docker.md
Last active April 16, 2024 19:52
Building Selenium in Docker

Building Selenium in Docker

Create Dockerfile

cat <<'eof' > Dockerfile
# Use an Ubuntu as a parent image
FROM ubuntu:22.04

# Set the shell
@rwcitek
rwcitek / Anaconda.docker.md
Last active April 11, 2024 10:36
Anaconda in Docker

Build Anaconda in Docker

Build the image

cat <<'eof' > Dockerfile
FROM ubuntu:22.04

RUN apt-get update && \
    apt-get install -y \
      curl \
@rwcitek
rwcitek / pg4admin.docker.md
Last active March 27, 2024 23:41
pg4admin in Docker
@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