Skip to content

Instantly share code, notes, and snippets.

View rwcitek's full-sized avatar

Robert Citek rwcitek

View GitHub Profile
@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 / dockerfile.nbviewer.md
Last active August 10, 2023 03:48
Dockerfile for nbviewer

Dockerfile for nbviewer

cat <<'eof' > /tmp/Dockerfile.nbviewer
FROM ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt-get install -y \
 curl \
@rwcitek
rwcitek / tf.do.md
Last active September 8, 2023 21:10
Using Terraform with Digital Ocean
@rwcitek
rwcitek / cabq.data.mirror.md
Last active November 18, 2023 09:11
City of ABQ sites

Mirror the Albuquerque City or City data sites

# set site URL
## city website
site=www.cabq.gov/
url=https://"${site}"

## city data
site=data.cabq.gov/
@rwcitek
rwcitek / nushell.docker.md
Last active August 10, 2023 03:23
nushell in Docker

Running nushell in Docker

Discover latest version

elinks --dump https://github.com/nushell/nushell/releases |
grep -m1 -o https:.*x86_64-unknown-linux-gnu.tar.gz |
rev |
cut -d/ -f2 |
rev 
@rwcitek
rwcitek / homebrew.md
Last active April 16, 2024 19:57
Installing and running Homebrew under Ubuntu in Docker
@rwcitek
rwcitek / htmlq.docker.md
Last active June 1, 2023 00:34
Installing and running htmlq within Docker
@rwcitek
rwcitek / windows.wsl2.docker.md
Last active March 4, 2025 00:41
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-24.04.

Older versions of Windows

Digital Ocean cloud computing

Overview of steps

  • Setup ( one time )
    • Create a DO account
    • Create a public/private SSH key
    • Add the key to your DO account
  • Each time
    • Launch an instance configured with the public SSH key
@rwcitek
rwcitek / number.generator.md
Last active February 13, 2023 04:56
Generate list of number with some tweaks

This function creates a sequential list of numbers then shuffles, removes one, and duplicates one into another list.

The challenge is to find the missing number and the duplicated number in the shuffled list.

Number list generator

number_list_generator () {
  # given an order of magnitude, set output file names
  local LC_ALL=C
 local oom=${1:-3}