This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
width = 65.3; | |
depth = 30.6; | |
space_bottom = 3; | |
mb_thick = 1.5; | |
space_top = 10; | |
height = space_bottom + mb_thick + space_top; | |
case_thick = 2.5; | |
holder_size = 5; | |
corner_radius = 3; | |
hex_size = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/iperf_api.c b/src/iperf_api.c | |
index 09ab6af..a54be44 100644 | |
--- a/src/iperf_api.c | |
+++ b/src/iperf_api.c | |
@@ -4520,11 +4520,26 @@ diskfile_recv(struct iperf_stream *sp) | |
{ | |
int r; | |
+#if 1 | |
+ static int pipefds[2] = {-1, -1}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/ruby | |
if ARGV.empty? | |
puts "Usage: #{$0} [rsync-options] <src-host:src-dir>" | |
exit 0 | |
end | |
generations = Dir.glob("*").grep(/^[0-9]{8}-[0-9]{6}$/).sort | |
argv = ARGV |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/reflector.rb b/reflector.rb | |
index c47370b..39e4115 100644 | |
--- a/reflector.rb | |
+++ b/reflector.rb | |
@@ -4,12 +4,17 @@ | |
# sudo ip link set tap-e up | |
# sudo ip route add 10.1.2.0/24 via 10.1.2.3 | |
+require "fiber_scheduler" | |
require "./tun" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack' | |
counter = 0 | |
Thread.new do | |
loop do | |
puts "hello, #{counter}" | |
counter += 1 | |
sleep 1 | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = 200 | |
m = 63 | |
q = 16 | |
c = 0 | |
1_000_000.times do | |
buckets = Array.new(m, 0) | |
n.times do | |
slot = rand(m) | |
buckets[slot] += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#include <assert.h> | |
#include <limits.h> | |
#include <netinet/in.h> | |
#include <netinet/tcp.h> | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define WIDTH (99 * 40) | |
#define HEIGHT (99 * 25) | |
static double timespec2d(struct timespec *ts) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* NAME: injectaddr.so | |
* | |
* SYSOPSIS: | |
* % gcc -shared -fPIC injectaddr.c -ldl -o injectaddr.so | |
* | |
* -- inject 1s delay, then connect to 127.0.0.1:8888 | |
* % LD_PRELOAD=injectaddr.so \ | |
* curl http://d1000.p8888.4127-0-0-1.inject.example.com/ | |
* |