wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
unzip 8-07-14_MegaCLI.zip
location = /gotoapp { | |
if ($http_user_agent ~* "iphone|ipod|ipad|appletv") { | |
return 301 https://www.apple.com/lae/ios/app-store/; | |
} | |
if ($http_user_agent ~* "android") { | |
return 301 https://play.google.com/store; | |
} | |
if ($http_user_agent ~* "Windows") { | |
return 301 https://www.microsoft.com/store/apps?rtc=1; |
/** Converts DOS time to Unix time */ | |
function dosToUnixTime($dosTime) { | |
$date = mktime( | |
(($dosTime >> 11) & 0x1f), // hours | |
(($dosTime >> 5) & 0x3f), // minutes | |
(($dosTime << 1) & 0x3e), // seconds | |
((($dosTime >> 21) & 0x0f) - 1), // month | |
(($dosTime >> 16) & 0x1f), // day | |
((($dosTime >> 25) & 0x7f) + 1980) // year | |
); |
# get the iso | |
wget http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-server-amd64.iso | |
# create the image disk | |
qemu-img create -f qcow2 disk.qcow2 10G | |
# launch the creation | |
virsh create ubuntu.xml | |
# you can connect to using vnc. |
javascript | |
ES6ValidationInspection | |
JSAccessibilityCheckInspection | |
JSBitwiseOperatorUsageInspection | |
JSCheckFunctionSignaturesInspection | |
JSClosureCompilerSyntaxInspection | |
JSCommentMatchesSignatureInspection | |
JSComparisonWithNaNInspection | |
JSConsecutiveCommasInArrayLiteralInspection |