# stop active raid
mdadm --stop /dev/md[01]
# destroy partition table on hdds
dd if=/dev/zero of=/dev/sda bs=1M count=512
dd if=/dev/zero of=/dev/sdb bs=1M count=512
dd if=/dev/zero of=/dev/sdc bs=1M count=512
dd if=/dev/zero of=/dev/sdd bs=1M count=512
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
// https://gist.github.com/tkrotoff/b0b1d39da340f5fc6c5e2a79a8b6cec0 | |
// WTF! | |
// parseFloat('-0') => -0 vs parseFloat(-0) => 0 | |
// -0 === 0 => true vs Object.is(-0, 0) => false | |
const minus0Hack = (value: number) => (Object.is(value, -0) ? '-0' : value); | |
export const operators: { | |
[operator: string]: | |
| { |
Many different applications claim to support regular expressions. But what does that even mean?
Well there are lots of different regular expression engines, and they all have different feature sets and different time-space efficiencies.
The information here is just copied from: http://regular-expressions.mobi/refflavors.html
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
class HttpUrl | |
ALPHA = "[a-zA-Z]" | |
DIGIT = "[0-9]" | |
DIGITS = "#{DIGIT}+" | |
SAFE = "[-$_.+]" | |
EXTRA = "[!*'(),]" | |
ALPHADIGIT = "[a-zA-Z0-9]" | |
TOPLABEL = "#{ALPHA}(#{ALPHADIGIT}|-)*#{ALPHADIGIT}|#{ALPHA}" |