Skip to content

Instantly share code, notes, and snippets.

View bottom.scad
// constants that were measured
mb_width = 170.5;
mb_depth = 171;
mb_thick = 2;
mb_holder1_depth = 29;
iopanel_x = -2;
iopanel_z = -2;
iopanel_width = 159;
iopanel_height = 45;
pcie_back_width = 20;
View mini-itx2.openscad
mb = [170.3, 170.3, 2];
case_thick = 2;
iopanel = [-2, -2, -2];
iopanel_width = 159;
iopanel_height = 45;
pcie_back_width = 20;
pcie_back_bottom_width = 12;
pcie_back_offset = 0;
View mini-itx.openscad
mb = [170.3, 170.3, 2];
psu = [40.5, 151.5, 82.5];
mb_right_space = 11;
duct = [120, 130, 30];
duct_offset = 20;
fan_height = 30;
fan_size = 100;
case_thick = 3;
pcie_lp_bracket_height = 80;
View chessboard.openscad
// パラメータ
square_size = 40; // マス目の大きさ (mm)
board_size = 4; // チェス盤の大きさ (8x8)
thick = 10;
hole_width = 100;
hole_height = 5;
hole_depth = 5;
difference () {
View rasbpi0-kvm.openscad
inner_width = 90;
rasbpi_width = 65.3;
capture_width = 42.7;
mb_depth = 30.9;
mb_thick = 1.8;
hdmi_width = 18;
rasbpi_above = 3;
capture_below = 3;
View radxazero-case.openscad
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;
View gist:2e4a4bc02792bc9c5f622b1a4d43caf2
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};
@kazuho
kazuho / timemachine.rb
Last active January 12, 2023 06:42
generational backup using rsync
View timemachine.rb
#! /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
View rat.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:510d65ee261a729177df371cf18dd75d
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"