This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Return a list of online disks for a storage pool | |
ONLINE=$(zpool status $1 | grep -Po "\S*(?=\s*ONLINE)") | |
DEVICES=() | |
while read -r line; do | |
if ! [ -b "/dev/disk/by-id/$line" ]; then | |
continue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -w | |
head, treshold = ARGV | |
head ||= 'HEAD' | |
Megabyte = 1000 ** 2 | |
treshold = (treshold || 0.1).to_f * Megabyte | |
big_files = {} | |
IO.popen("git rev-list #{head}", 'r') do |rev_list| | |
rev_list.each_line do |commit| |