Skip to content

Instantly share code, notes, and snippets.

@thisisel
thisisel / pandocdocx2md.md
Created October 27, 2025 11:11 — forked from plembo/pandocdocx2md.md
Convert docx to markdown with pandoc

Convert Word documents to markdown with pandoc

I use pandoc to convert masses of Word documents to markdown. Still working on a generic script, but for now here's the "gist" of what I type into the terminal:

$ myfilename="example"
$ pandoc \
-t markdown_strict \
--extract-media='./attachments/$myfilename' \
$myfilename.docx \
import wfdb
#--- step 1: Download dataset e.g https://www.physionet.org/content/mitdb/1.0.0/
#--- step 2: Unzip
#--- Open one of the ECG recordings with WFDB
#You'll see multiple files per patient (patient 100, patient 101, etc.)
patient_record = wfdb.rdrecord("100") # exclude file extention e.g .dat .csv .atr
@thisisel
thisisel / dante_setup.sh
Created March 2, 2022 09:04 — forked from gpchelkin/dante_setup.sh
How to Setup SOCKS5 Proxy Server for (not only) Telegram using Dante on Ubuntu 16.04 / 18.04 / 20.04
### NOT A SCRIPT, JUST A REFERENCE!
# install dante-server
sudo apt update
sudo apt install dante-server
# or download latest dante-server deb for Ubuntu, works for 16.04 / 18.04 / 20.04:
wget http://archive.ubuntu.com/ubuntu/pool/universe/d/dante/dante-server_1.4.2+dfsg-7build3_amd64.deb
# or older version:
wget http://ppa.launchpad.net/dajhorn/dante/ubuntu/pool/main/d/dante/dante-server_1.4.1-1_amd64.deb
@thisisel
thisisel / linux-packages
Last active October 6, 2023 09:15 — forked from kozmonaut/linux-packages
Backup and restore installed packages inside Linux Debian
# Backup your packages list
# Get a packages list
dpkg --get-selections > ~/Package.list
# Copy list of repositories
sudo cp /etc/apt/sources.list ~/sources.list
# Export repo keys
sudo apt-key exportall > ~/Repo.keys
@thisisel
thisisel / mongodb_shell_commands.md
Created May 27, 2021 19:23 — forked from michaeltreat/mongodb_shell_commands.md
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@thisisel
thisisel / .gitignore
Last active January 16, 2022 00:09 — forked from GhostofGoes/.gitignore
Basic .gitignore template for Python projects
# Editors
.vscode/
.idea/
# Vagrant
.vagrant/
# Mac/OSX
.DS_Store