Skip to content

Instantly share code, notes, and snippets.

View svenstaro's full-sized avatar

Sven-Hendrik Haase svenstaro

View GitHub Profile
@KartikTalwar
KartikTalwar / Documentation.md
Last active April 13, 2024 23:09
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
@doobeh
doobeh / ipn.py
Created February 20, 2012 15:39
PayPal Flask IPN Engine
# -*- coding: utf-8 -*-
"""
IPN Engine
~~~~~~~~~~
PayPal's Instant Payment Notification (IPN) helps integrate PayPal more
deeply into your web application. When activated, PayPal will send a
POST request to a specified URL when a transaction's status changes.
The most obvious use is to trigger a state change, enable an account,