Skip to content

Instantly share code, notes, and snippets.

View kylemanna's full-sized avatar

Kyle Manna kylemanna

View GitHub Profile
@kylemanna
kylemanna / notes.txt
Created July 18, 2014 14:11
In response to questions about Tahoe-LAFS file system
17:47 < warner> hm, there's a bunch of advice we can give. As for actual written-down stuff.. hm.
17:47 < warner> There's a wiki page called "Atlas perf" where I measured performance of a bunch of files of various sizes
17:47 < warner> but that was mostly looking at differences between download algorithms
17:48 < warner> both uploads and downloads have a certain amount of overhead that's independent of the filesize
17:48 < warner> it's sort of an A + B*log(size) + C*size equation
17:48 < warner> where A might be between 100ms and 500ms plus maybe 4 or 5 roundtrips
17:48 < warner> and B doesn't much matter because it's swamped by C
17:49 < warner> and C is like 5-10MBps or the speed of your wire, whichever is lower
17:49 < warner> but in general I'd say that anything 1MB or larger should be fine
17:50 < warner> I'd avoid doing lots of <1MB files, as the round-trip-time and startup overhead starts to matter

Samsung D3 Station USB 3.0 4TB

  • Drive inside: ST4000DM000-1F2168 (CC54)
From 3903d8e39e991b1286b4fd8a372aa0a0d30f9553 Mon Sep 17 00:00:00 2001
From: Kyle Manna <kyle@kylemanna.com>
Date: Mon, 21 Jul 2014 22:54:35 -0700
Subject: [PATCH] lvm2: Add support for dm-cache
* Enable dm-cache support.
* Redhat and Fedora related configurations:
* https://bugzilla.redhat.com/show_bug.cgi?id=1043646#c15
* https://git.fedorahosted.org/cgit/lvm2.git/tree/spec/source.inc?id=e538354e281c7b00667b3385878b4c32693359b5#n16
---
#
# Automatically generated file; DO NOT EDIT.
# Linux Backports from "Linux" "v3.16-rc5-0-g1795cd9" (with backports "v3.16-rc5-1-0-gf58f9d6")
#
CPTCFG_64BIT=y
CPTCFG_X86_64=y
CPTCFG_X86=y
CPTCFG_INSTRUCTION_DECODER=y
CPTCFG_LOCKDEP_SUPPORT=y
CPTCFG_STACKTRACE_SUPPORT=y
# /etc/udev/rules.d/90-logitech-g19-lcd.rules
#
# Disable the "Logitech" splash logo on LCD screen of the G19
#
# It'd be nice if gnome15 didn't wake-up my processor and consume
# excessive CPU so that I could use the display some day.
ACTION=="add", ATTR{idVendor}=="046d", ATTR{idProduct}=="c229", RUN+="/bin/sh -c 'echo 0 >/sys/\$devpath/authorized'"
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb 429G 294G 2.9G 100% /mnt/disaster
$ btrfs filesystem df /mnt/disaster
Data, RAID0: total=296.05GiB, used=293.23GiB
Data, single: total=8.00MiB, used=0.00
System, RAID1: total=8.00MiB, used=48.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, RAID1: total=1.00GiB, used=363.31MiB
@kylemanna
kylemanna / reverse-ssh.conf
Created August 3, 2014 19:59
Reverse ssh / phone home for Raspberry Pi
# /etc/supervisor/conf.d/reverse-ssh.conf
[program:reverse-ssh]
command=/usr/bin/ssh -NTC -o ServerAliveInterval=60 -o ExitOnForwardFailure=yes -o StrictHostKeyChecking=no -i /home/pi/.ssh/reverse-fwd -R 2233:localhost:22 r@server.example.com
autorestart=true
user=pi
startretries=2147483647
--- cppForSwig/leveldb/build_detect_platform 2014-04-21 15:57:03.485118965 +0200
+++ cppForSwig/leveldb/build_detect_platform_fix 2014-04-21 15:59:19.714407671 +0200
@@ -185,9 +185,7 @@
# Test whether Snappy library is installed
# http://code.google.com/p/snappy/
- $CXX $CXXFLAGS -x c++ - -o $CXXOUTPUT 2>/dev/null <<EOF
- #include <snappy.h>
- int main() {}
+
@kylemanna
kylemanna / lynis.txt
Created August 19, 2014 23:07
Example lynis run: docker run --rm -it ubuntu:14.04 'apt-get install -y lynis && lynis -Q'
2014/08/19 22:54:29 exec: "apt-get install -y lynis && lynis -Q": executable file not found in $PATH
@kylemanna
kylemanna / lynis.txt
Created August 19, 2014 23:11
Example lynis run: docker run --rm ubuntu:14.04 sh -c 'apt-get install -y lynis && lynis --quick --no-colors 2>&1'
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
menu
Suggested packages:
dnsutils menu-l10n gksu kdebase-bin kdebase-runtime ktsuss sux
The following NEW packages will be installed:
lynis menu
0 upgraded, 2 newly installed, 0 to remove and 24 not upgraded.