Skip to content

Instantly share code, notes, and snippets.

View stolarczyk's full-sized avatar

Michal Stolarczyk stolarczyk

View GitHub Profile
@stolarczyk
stolarczyk / README.md
Last active May 6, 2022 21:06
Save Git commits as CSV

Save GitHub commits as CSV

This script saves Git commits to a CSV file.

Usage

  1. Download the file

  2. Make the file executable

@stolarczyk
stolarczyk / README.md
Last active March 4, 2024 01:26
Save GitHub issues as TSV

Save GitHub issues as TSV

This script saves GitHub issues in TSV format

Installation

The script has two software dependancies:

  1. GitHub CLI for querying GitHub API
  2. jq for transforming the output of the above to TSV format
@stolarczyk
stolarczyk / large_file_rsa_encryption.py
Last active September 5, 2019 19:17
Sample implementation of client-server signing and verification of large files as described in the python rsa package documentation: https://stuvel.eu/python-rsa-doc/usage.html#how-it-usually-works
import rsa
import subprocess
# First, initial client-server communication; key pair generation and exchange on the client side
(pubkey, privkey) = rsa.newkeys(512)
########### server side
INPUT_FILE = "/home/user/path/file"
server_aes_key = rsa.randnum.read_random_bits(128)