Skip to content

Instantly share code, notes, and snippets.

View rwcitek's full-sized avatar

Robert Citek rwcitek

View GitHub Profile
@rwcitek
rwcitek / censusdis.ipynb
Last active April 5, 2025 21:27
Not working: timing censusdis module
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / categorical-scatter-plot.ipynb
Last active April 5, 2025 21:05
Categorical scatter plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / id.event.sequence.ipynb
Last active April 5, 2025 19:33
Sequence ID by ID
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / census-api-blocked.ipynb
Last active April 17, 2025 14:28
census.api.blocked.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / censusdis.ipynb
Last active April 17, 2025 17:15
censusdis.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rwcitek
rwcitek / foobar.py
Last active March 1, 2025 22:14
python module
def foo():
return("hello, world")
@rwcitek
rwcitek / searching.gists.md
Created October 25, 2024 19:08
Searching Gists

Searching gists with qualifiers

When searching for gists on GitHub, you can use various qualifiers to refine your search. Here are some useful keys you can utilize:

  • user: - Search gists created by a specific user (e.g., user:foobar).

  • public: - Find public gists (e.g., public:true).

  • private: - Find private gists (e.g., private:true).

@rwcitek
rwcitek / ocr.pdf.scanned.text.md
Last active November 17, 2024 22:33
OCR of a PDF with scanned text

Using Docker to OCR text from a scanned PDF

docker container run --rm -d -v "${PWD}":/tmp/zfoo --name ocr ubuntu sleep inf

docker container exec -i ocr /bin/bash << 'eof'
  export DEBIAN_FRONTEND=noninteractive
  apt-get update
  apt-get install -y python3-pip vim less tree tesseract-ocr ghostscript
 pip3 install --break-system-packages ocrmypdf
@rwcitek
rwcitek / Docker.Linux.LIL.md
Last active August 25, 2024 20:55
Learning Linux via LinkedIn Learning and Docker
@rwcitek
rwcitek / data.docker.md
Last active October 31, 2024 22:24
Data only in Docker image

Creating a data-only Docker image

# Creating the data
echo "Hello, world" > data.txt

# Creating an image with the data
{ cat <<'eof'
from scratch
workdir /data