Skip to content

Instantly share code, notes, and snippets.

@recoder
recoder / nexus.box
Last active December 9, 2020 14:46
Boxstarter installation script for home Windows10 box
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst 7zip.install
cinst autoruns
cinst Cmder
cinst dosbox
cinst Firefox
cinst malwarebytes
cinst mpc-hc
cinst paint.net

Replacing a failed disk

If your NAS supports hot swapping (check Synology's website for that!), you could just pull the drive cage with the falling drive out, replace the drive in the cage and put the cage with the new drive back it.

However unless you actually need continuous availability I would just shut the NAS down, swap out the drive and power it back up again.

Either way in DSM your volume/storage pool will be shown as degraded, the unit might keep beeping (somewhere in the control panel there's a button to shut that off) and you will need to add the new drive to your storage pool (in the Storage Manager app).

Then the system will resync your RAID array with the new drive, which could take several days.

Verifying my Blockstack ID is secured with the address 1N73GgUoM1u5Xhrqr8BHmuTC9JjCNDp99T https://explorer.blockstack.org/address/1N73GgUoM1u5Xhrqr8BHmuTC9JjCNDp99T

Keybase proof

I hereby claim:

  • I am recoder on github.
  • I am recoder (https://keybase.io/recoder) on keybase.
  • I have a public key ASDkNiLoJpBNbYPeXxT0Fo2o2IXLg0pQeoTkVaPGiOV1SQo

To claim this, I am signing this object:

@recoder
recoder / my_monthly_cleanup.md
Last active May 31, 2018 13:47
My Monthly Authorization Cleanup
@recoder
recoder / ljlinks.py
Last active February 7, 2018 15:53
Python script to extract all external links for archiving
@recoder
recoder / synology_disk_space.sh
Created January 8, 2018 15:45
How to solve Synology "You cannot login to the system because the disk space is full currently"
#!/bin/bash
#1. See what partition is full:
df -h
#2. Find largest directories:
du -hax / 2> /dev/null | sort -rh | head -n 20
#3. Find fattest files:
find . -type f -printf "%s\t%p\n" | sort -n | tail -n 20
@recoder
recoder / docker-compose.yaml
Created January 2, 2018 16:14
Sample docker-compose config for traefik with LetsEncrypt and two domains plus dashboard
version: '2'
networks:
shout:
external:
name: web
whisper: {}
services:
traefik:
@recoder
recoder / docker-compose.yaml
Created December 28, 2017 22:54
Sample docker-compose config for traefik and two domains
version: '2'
networks:
shout:
external:
name: web
whisper: {}
services:
traefik: