Skip to content

Instantly share code, notes, and snippets.

View eiennohito's full-sized avatar

Arseny Tolmachev eiennohito

  • Hakuhodo Technologies
  • Osaka, Japan
View GitHub Profile
ErikAugust / spectre.c
Last active July 5, 2024 18:14
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#include <x86intrin.h> /* for rdtscp and clflush */
nikitakit /
Last active January 6, 2024 08:48
Tensorflow Beam Search
Beam decoder for tensorflow
Sample usage:
from tf_beam_decoder import beam_decoder
decoded_sparse, decoded_logprobs = beam_decoder(
KartikTalwar /
Last active June 25, 2024 10:55
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
pwenzel /
Created December 1, 2012 15:15
Automatically resume rsync over SSH after broken connection
while [ 1 ]
rsync -avz --partial source dest
if [ "$?" = "0" ] ; then
echo "rsync completed normally"
echo "Rsync failure. Backing off and retrying..."