Skip to content

Instantly share code, notes, and snippets.

View SergeiCherevko's full-sized avatar

Sergei Cherevko SergeiCherevko

  • Limassol
View GitHub Profile
@KartikTalwar
KartikTalwar / Documentation.md
Last active August 6, 2025 23:57
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@suadanwar
suadanwar / video_telegram.py
Created October 16, 2020 04:27
This sample code is for Send video to telegram bot using Raspberry Pi tutorial.
import telepot
from picamera import PiCamera
import RPi.GPIO as GPIO
import time
from time import sleep
import datetime
from telepot.loop import MessageLoop
from subprocess import call