Skip to content

Instantly share code, notes, and snippets.

@vznncv
vznncv / paramiko_sftp_large_file_downloading_demo.py
Created January 18, 2020 09:26
Workaround to download a large file with paramiko from a sftp server
"""
The script contains example of the paramiko usage for large file downloading.
It implements :func:`download` with limited number of concurrent requests to server, whereas
paramiko implementation of the :meth:`paramiko.SFTPClient.getfo` send read requests without
limitations, that can cause problems if large file is being downloaded.
"""
import logging
import os
@vznncv
vznncv / main.cpp
Created February 16, 2019 11:12
Mbed led blinking demo for STM32F3Discovery board
/**
* Simple Mbed led blinking demo for STM32F3Discovery board.
*
* It uses leds that are attached to pins PE_8 - PE_15.
*/
#include "mbed.h"
int main()
{
uint8_t mask = 0x01;