Skip to content

Instantly share code, notes, and snippets.

View mrtrkmn's full-sized avatar
☁️
working

Türkmen mrtrkmn

☁️
working
View GitHub Profile
@mrtrkmn
mrtrkmn / notes.md
Last active November 17, 2024 14:55
Practical notes

Converting MD files to PDF

This is useful in particular for repositories which explains some concepts on bunch of markdown files, in order to decrease back, forth navigation. A single PDF file can be generated through following steps:

$ for file in $(find . -name "*.md" | sort); do     echo -e "\n\n# $(basename "$file" .md)\n\n" >> combined.md;     cat "$file" >> combined.md; done
$ pandoc combined.md -o Grokking_System_Design.pdf
@merikan
merikan / Jenkinsfile
Last active November 4, 2024 08:05
Some Jenkinsfile examples
Some Jenkinsfile examples
@ryantuck
ryantuck / gpg_test.py
Last active April 30, 2024 23:44
working example of using gnupg in python
# install:
# pip3 install python-gnupg
# note - gpg needs to be installed first:
# brew install gpg
# apt install gpg
# you may need to also:
# export GPG_TTY=$(tty)
@drorata
drorata / gist:146ce50807d16fd4a6aa
Last active June 3, 2024 06:00
Minimal Working example of Elasticsearch scrolling using Python client
# Initialize the scroll
page = es.search(
index = 'yourIndex',
doc_type = 'yourType',
scroll = '2m',
search_type = 'scan',
size = 1000,
body = {
# Your query's body
})