Skip to content

Instantly share code, notes, and snippets.

@MDeiml
MDeiml / ddrescue_restart_slow.sh
Created July 29, 2023 10:22
ddrescue -- power drive off and on after every slow read
#!/bin/bash
DRIVE=sda
IMAGE=
MAPFILE=
until ddrescue /dev/$DRIVE $IMAGE $MAPFILE -n -a 10M --max-slow-reads=0
do
sleep 5
echo "turning off $DRIVE"
call plug#begin('~/.config/nvim/plugged/')
if exists('g:vscode')
else
" General Plugins
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
Plug 'ctrlpvim/ctrlp.vim'
" Aesthetics