This file contains hidden or 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
/*jslint devel*/ | |
function semverCompare(aa, bb) { | |
/* | |
* this function will compare semver versions aa ? bb and return | |
* -1 if aa < bb | |
* 0 if aa = bb | |
* 1 if aa > bb | |
* https://semver.org/#spec-item-11 | |
* example usage: | |
semverCompare("2.2.2", "10.2.2"); // -1 |
This file contains hidden or 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
function fsRmrSync (dir) { | |
/* | |
* this function will sync "rm -rf" <dir> | |
*/ | |
require("child_process").spawnSync("rm", [ | |
"-rf", dir | |
], { | |
stdio: [ | |
"ignore", 1, 2 | |
] |
This file contains hidden or 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
{ | |
"openapi" : "3.0.1", | |
"info" : { | |
"title" : "defaultTitle", | |
"description" : "defaultDescription", | |
"version" : "0.1" | |
}, | |
"servers" : [ { | |
"url" : "https://api.nasa.gov" | |
} ], |
This file contains hidden or 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://community.wd.com/t/question-regarding-the-fan-used-by-wd-my-cloud-ex2/98304/150 | |
martin953 | |
1 | |
Aug '17 | |
Hi everybody! | |
I’m the owner of WD My Cloud Mirror Gen2 8 TB and my drives (2 WD Red’s) were constantly running at around 52º C, so I was among others who were concerned about high operating temperature of WD My Cloud drives. | |
I’ve read this thread top to bottom and accumulated suitable solution (at least for me it is). Basically, My Cloud OS already have temperature controlling program (daemon), we only need to make it do it’s job somewhat more passionate. The temperature thresholds are stored in four .xml files in /etc/wd/ folder: |
This file contains hidden or 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
advance wars - co always eagle | |
0000317D 000A | |
1006C9E4 0007 | |
3201ABB9 0008 | |
advance wars - max power p1 | |
0000317D 000A | |
1006C9E4 0007 | |
8201ABBC FFFF |
This file contains hidden or 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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains hidden or 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
var local; | |
local = {}; | |
local.cryptoAesDecrypt = function (key, data, onError) { | |
/* | |
* this function will aes-256-cbc decrypt Uint8Array data with the Uint8Array key | |
* example usage: | |
key = new Uint8Array(32); | |
local.cryptoAesEncrypt(key, new Uint8Array([1,2,3]), function (error, data) { | |
console.assert(!error, error); | |
local.cryptoAesDecrypt(key, data, console.log); |
This file contains hidden or 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
before_install: | |
# override $NODE_VERSION | |
- printf "$NODE_VERSION\n" && if (printf "$CI_COMMIT_MESSAGE" | grep -qE "\bNODE_VERSION="); then nvm install "$(printf "$CI_COMMIT_MESSAGE" | sed -e "s/.*\bNODE_VERSION=//" -e "s/ .*//")" && printf "$NODE_VERSION\n" && node --version && npm --version; fi |
This file contains hidden or 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
/* | |
* example.js | |
* | |
* this zero-dependency example will demo a simple (60 sloc), high-performance express-middleware | |
* that can broadcast a single fs.readFile() operation to multiple server-requests | |
* | |
* | |
* | |
* example usage: | |
* $ REQUESTS_PER_TICK=10 node example.js |
This file contains hidden or 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
/* | |
* example.js | |
* | |
* this zero-dependency example will demo a simple (60 sloc), high-performance express-middleware | |
* that can broadcast a single fs.readFile() operation to multiple server-requests | |
* | |
* | |
* | |
* example usage: | |
* $ node example.js |