Skip to content

Instantly share code, notes, and snippets.

@jjv
jjv / depuzzlefy.pl
Created August 19, 2018 23:49 — forked from YoOoster/depuzzlefy.pl
Solves sudoku and image jigsaw puzzles created by http://flash-gear.com/puzzle/ and https://www.jigidi.com/
use 5.012;
use strict;
use warnings;
use File::Temp qw(tempfile);
use IPC::System::Simple qw(capture system);
use LWP::UserAgent;
use URI::QueryParam;
use Win32::GUI;
use Data::Dumper;
use integer;
@jjv
jjv / 0. Synology RAID Expansion-Resync Performance.md
Last active September 4, 2018 22:56 — forked from fbartho/0. Synology RAID Expansion-Resync Performance.md
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

@jjv
jjv / keybase.md
Created October 6, 2014 22:37
Proving my GitHub identity

Keybase proof

I hereby claim:

  • I am jjv on github.
  • I am jawa (https://keybase.io/jawa) on keybase.
  • I have a public key whose fingerprint is E2CF AF77 1880 8F20 D3A7 1D08 6C0B 8668 2033 0CF0

To claim this, I am signing this object:

function (input) {
return (
_.foldl(input, function(prevObj, char) {
var prev = prevObj.prev,
max = prevObj.max,
next = prev.substr(1) + char,
product = _.foldl(next, function(acc, num) {
return acc * num
})
return {max: (max > product ? max : product), prev: next }