Skip to content

Instantly share code, notes, and snippets.

@fbartho
fbartho / 0. Synology RAID Expansion-Resync Performance.md
Last active July 17, 2024 22:08
Walkthrough of what I did to increase performance on my Synology NAS box during an expansion, and afterwards.

Performance on Synology RAIDs

(especially while expanding)

Warning: The exact commands may not match for your particular linux OS / Synology(NAS) device. I had to customize the commands after exploring my particular system's setup.

If you're new to linux, or this is a new piece of hardware / a new synology device, jump down to the section called "Inspecting a setup"

Contents

@silvercircle
silvercircle / userChrome.css
Last active March 23, 2024 01:19
My Thunderbird userChrome for square tabs + some minor UI tweaks
/*
* Thunderbird userChrome.css
*
* WARNING: This style was designed for TB version 60 and will likely not work
* with more recent versions (see comments)
*
* it's meant to be used with the default 3 panel split layout
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
Delivered-To: adam+mctest@algolia.com
Received: by 10.107.32.205 with SMTP id g196csp438869iog;
Thu, 17 Mar 2016 06:12:42 -0700 (PDT)
X-Received: by 10.129.40.83 with SMTP id o80mr4407791ywo.45.1458220362553;
Thu, 17 Mar 2016 06:12:42 -0700 (PDT)
Return-Path: <bounce-md_9656357.56eaad44.v1-9f13098b410d4344b9a0d22cd7507a89@mandrillapp.com>
Received: from mail2.mcsignup.com (mail2.mcsignup.com. [205.201.139.32])
by mx.google.com with ESMTPS id i124si1952778yba.118.2016.03.17.06.12.42
for <adam+mctest@algolia.com>
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active July 2, 2024 07:48
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to:

<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@stevenharman
stevenharman / expanding_raid_5_array.sh
Created March 31, 2015 00:03
Improving RAID Expansion speed (and wall clock time) on my Synology DS1515+.
# log the default values:
echo "speed_limit_max: `cat /proc/sys/dev/raid/speed_limit_max`" #=> 200000
echo "speed_limit_min: `cat /proc/sys/dev/raid/speed_limit_min`" #=> 10000
echo "stripe_cache_size: `/sys/block/md2/md/stripe_cache_size`" #=> 256
# update to use more RAM (Stripe Cache Size) and higher lower bound (speed_limit_min)
echo 100000 > /proc/sys/dev/raid/speed_limit_min
# This will result in more memory usage. bumping to 32768 resulted in ~512MB RAM increase.
echo 32768 > /sys/block/md2/md/stripe_cache_size
@corny
corny / dynv6.sh
Last active May 25, 2024 11:02
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi