Skip to content

Instantly share code, notes, and snippets.

@yayugu
yayugu / gist:007b9b5085513cb7f5d0
Created June 26, 2014 07:57
stylish's user script: github tab size 8 to 2
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix(https://github.com/) {
.code-body .line, .file-diff .file-diff-line {
tab-size: 2;
-moz-tab-size: 2;
-o-tab-size: 2;
}
}
@yayugu
yayugu / gist:5902daaf6807a534d446
Last active August 29, 2015 14:17
雑なHDD監視crontab
33 * * * * sudo ruby -e 'zstat = `zpool status -x`.strip; if zstat != "all pools are healthy" then puts zstat; end'
35 * * * * sudo ruby -e '["sda", "sdb", "sdc", "sdd"].each do |dev| health = `smartctl -H /dev/#{dev}`; unless health.include?("SMART overall-health self-assessment test result: PASSED") then puts dev; puts health; end; end
@yayugu
yayugu / VPN Auto Reconnect Script for Windows.md
Created October 30, 2024 04:56 — forked from brsnik/VPN Auto Reconnect Script for Windows.md
A simple script that will force reconnect your VPN when it disconnects. Optionally it can also send a notification to the user after multiple failed attempts.

VPN Auto Reconnect Script for Windows

1. Setup Your VPN

  1. Open VPN Settings

    • Open the Settings app by pressing Windows + I on your keyboard.

    • Or go to Network & Internet.