Skip to content

Instantly share code, notes, and snippets.

View kmtu's full-sized avatar

KM Tu kmtu

View GitHub Profile
@kmtu
kmtu / Documentation.md
Created December 2, 2016 08:58 — forked from KartikTalwar/Documentation.md
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
#!/bin/sh
# fix the configure files
patch -p1 config.guess < fix-config-sx9.diff
# make the build directory
mkdir -p builder
cd builder
# configure
! XDR Fortran Interface Example Program
! 2014 (c) James W. Barnett <[email protected]>
! https://github.com/wesbarnett/
program read_xtc_prog
use, intrinsic :: iso_c_binding, only: C_NULL_CHAR, C_PTR, c_f_pointer
use xtc
implicit none
! XDR Fortran Interface
! 2014 (c) James W. Barnett <[email protected]>
! https://github.com/wesbarnett/
module xtc
use, intrinsic :: iso_c_binding, only: C_PTR, C_CHAR, C_FLOAT, C_INT
implicit none
private
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>True Trello Printer</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{margin:15%;}
.panel-body{
@kmtu
kmtu / mywallet.py
Created December 26, 2013 12:52 — forked from anfedorov/mywallet.py
#!/usr/bin/env python
import base64, hashlib, hmac, json, sys, getpass
from Crypto.Cipher import AES
from Crypto.Hash import RIPEMD, SHA256
base58_chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
def prompt(p):
return getpass.getpass(p + ": ")