View gist:770ffeb2ae0ecc50d9aa6e190f296bbc
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
=== START OF INFORMATION SECTION === | |
Model Family: Samsung based SSDs | |
Device Model: Samsung SSD 850 PRO 128GB | |
Serial Number: S24ZNXAH211973D | |
LU WWN Device Id: 5 002538 840198860 | |
Firmware Version: EXM02B6Q | |
User Capacity: 128,035,676,160 bytes [128 GB] | |
Sector Size: 512 bytes logical/physical | |
Rotation Rate: Solid State Device | |
Device is: In smartctl database [for details use: -P show] |
View mpstat
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
$ mpstat -P ALL | |
Linux 4.9.0-8-amd64 (rt1) 15.11.2018 _x86_64_ (16 CPU) | |
21:41:38 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle | |
21:41:38 all 0,13 0,00 0,21 0,00 0,00 7,94 0,00 0,00 0,00 91,71 | |
21:41:38 0 0,09 0,00 0,16 0,00 0,00 9,27 0,00 0,00 0,00 90,48 | |
21:41:38 1 0,05 0,00 0,17 0,00 0,00 18,17 0,00 0,00 0,00 81,61 | |
21:41:38 2 0,06 0,00 0,19 0,00 0,00 18,38 0,00 0,00 0,00 81,38 | |
21:41:38 3 0,05 0,00 0,18 0,00 0,00 17,51 0,00 0,00 0,00 82,25 | |
21:41:38 4 0,05 0,00 0,20 0,00 0,00 19,01 0,00 0,00 0,00 80,74 |
View gist:f02ce4e0ce6d220d43aaac7dc1b0bbed
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
<?php | |
print 'TEST1: Duplikaty elementow w tablicy '; | |
$a = [ 1, 2, 3]; | |
$b = [ 1, 2, 3, 2]; | |
$diff = array_diff($a, $b); | |
$diff2 = array_diff($b, $a); | |
if(empty($diff) && empty($diff2)) { | |
print 'WYNIK: TAK '; | |
} else { |
View gist:21c3a92d2d4434df3767a1095d76da44
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
<?php | |
function arrays_equal($array1,$array2) | |
{ | |
if (!is_array($array1)) { | |
$array1 = array($array1); | |
} | |
if (!is_array($array2)) { | |
$array2 = array($array2); | |
} |
View testcase-pdf
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
#this works only in FF | |
<html> | |
<input type="file" > | |
<object id="view" type="application/pdf" width="100%" height="100%"></object> | |
</html> | |
<script type="text/javascript"> | |
var fileInput = document.querySelector('input'); |