Skip to content

Instantly share code, notes, and snippets.

View adamatan's full-sized avatar

Adam Matan adamatan

View GitHub Profile
@adamatan
adamatan / decrypt_pdf.sh
Created January 3, 2022 16:19
PDF in the CLI
#!/bin/bash
# Usage:
# PASSWORD='MY-SECRET-PASSWORD' ./decrypt_pdf.sh
mkdir -p decrypted
find . -type f -maxdepth 1 -name '*.pdf' -print0 | \
xargs -0 -n 1 -I % \
qpdf --decrypt --password=${PASSWORD} % decrypted/%
#!/bin/bash
# Starts Two redis containers: db and CLI
docker network create redis-net
docker run -d --hostname redis-server --network=redis-net redis
docker run -it --network redis-net --rm redis redis-cli -h redis-server
@adamatan
adamatan / names.csv
Created September 23, 2021 07:34
שמות פרטיים בישראל - מקור https://data.gov.il/dataset/firs-name
We can't make this file beautiful and searchable because it's too large.
שם פרטי
אאברהם
אאג'ניו
אאגן
אאגניה
אאגניו
אאד
אאדה
אאדו
אאדל
@adamatan
adamatan / setup.md
Last active March 1, 2023 08:44
Mac setup

Homebrew

brew install ag diff-so-fancy watch tree fzf htop pyenv trash tmux fswatch ncdu imagemagick ntfs-3g moreutils blueutil gnupg tldr qpdf openssl readline sqlite3 xz zlib jq

Python

  1. PyEnv
  2. pip

pip install --upgrade pip

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adamatan
adamatan / guy.py
Created August 28, 2019 03:59
Guy's second iPython code
21/1: 2+5
21/2: 100+100
21/3: 4+4
21/4: 4214
21/5: 1
21/6: 15+15
21/7: 10+10
21/8: 4+5
21/9: 2+2+2
21/10: 6+6

Keybase proof

I hereby claim:

  • I am adamatan on github.
  • I am adamatan (https://keybase.io/adamatan) on keybase.
  • I have a public key whose fingerprint is 92D5 D56F 822F DE7E 7D59 3427 F83B 4D4D B6C4 3726

To claim this, I am signing this object: