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
First, get yourself a docker package. https://github.com/JediNite/docker-ce-WDEX4100-binaries/releases/ | |
Get yourself some disk space on the NAS. | |
I did not seem to have enough disk space on mine, so I symlinked a directory from one of my connected harddrives into /usr/local/docker. | |
Undo the tarball into /usr/local/docker. | |
You'll probably need extra space in /var/lib/docker, so symlink that to somewhere on one of your hard drives. | |
Add a group for docker. Since the device is missing the 'groupadd' command, but you have root access, go and edit the /etc/groups file | |
and get yourself a new docker group. |
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
make changes you want to /etc/samba/smb.conf | |
(i'm messing with aio read size = 1, aio write size = 1, write cache size = 200k, getwd cache = true) | |
run ```smbcmd -l``` | |
currently seeing a 200% increase in write speeds to both local and USB attached disks, as well as a significant apparent improvement when many files are being accessed simultaneously. | |
not sure how to make this a permanent change, will need to study. The system has MANY scripts that call the program that configures smb.conf, so it may just need to be on a cronjob or something. ugh. | |
probably run a cron job that runs a bunch of sed's on the file to add/change the things you want to add/change, and then reloads it on the regular. | |
at least, if i see it being re-written regularly. |
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
javascript:(function() { | |
const getInputElements = () => Array.from(document.getElementsByTagName('input')); | |
const getInfoCompletedElements = () => getInputElements().filter(x => x.type === 'hidden' && x.name.startsWith('infoCompleted')); | |
const getButtonElements = () => Array.from(document.getElementsByClassName('amznBtn')); | |
const getSubmitButtons = () => getButtonElements().filter(x => x.textContent === 'Submit'); | |
getInputElements().forEach(function(x) { if(x.value === 'no') x.click(); }); | |
console.warn('** getInfoCmpletedElements', getInfoCompletedElements()); | |
getInfoCompletedElements().forEach(x => x.value = "1"); |
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
constants.js: | |
function disallowUndefinedAccess(obj) { | |
const handler = { | |
get(target, property) { | |
if (property in target) { | |
return target[property]; | |
} | |
throw new ReferenceError(`Access unknown ${property.toString()}`); | |
}, |
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
/* An incredibly handy function to run several (probably related) Promises simultaneously, | |
* allowing for any given Promise to reject, results will be returned in an object with same key names as the input | |
*/ | |
/* example: | |
* const x = { | |
* api1: () => callApi1(), | |
* api2: () => callApi2(), | |
* api3: () => callApi3(), | |
* }; |
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
var LINE = require('./line.js'); | |
var line = new LINE(); | |
var email = 'your email'; | |
var password = 'your password'; | |
line.login(email, password, function(error, result) { | |
if (error) { | |
return; | |
} |
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
/* Enyo Platform encapsulation. Include this FIRST in your depends.js. The | |
* first call you make to a function inside it will cause it to perform it's | |
* detection (in the setup function). If you are running in PhoneGap, and your | |
* app depends on accurate results in here, make sure that you are not running | |
* any code that depends on this module until after the "deviceready" PhoneGap | |
* event is fired. | |
* | |
* This prefers direct access to APIs whenever possible - although you CAN run | |
* webOS and WebWorks apps with PhoneGap, I'm trying to avoid going through any | |
* extra layers here. |
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.log("Inbox Received"); | |
i = inResponse.indexOf("<json><!")+14; | |
j = inResponse.lastIndexOf("></json>")-1; | |
inboxJSON = JSON.parse(inResponse.substring(i,j)); |
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
[{"messages": | |
{"b61af8a73da92c3fdd0b8fb90866d4cc1140b3cd": | |
{"id":"b61af8a73da92c3fdd0b8fb90866d4cc1140b3cd", | |
"phoneNumber":"+11341343434", | |
"displayNumber":"(734) 123-9456", | |
"startTime":"1314472446198", | |
"displayStartDateTime":"8/27/11 3:14 PM", | |
"displayStartTime":"3:14 PM", | |
"relativeStartTime":"23 minutes ago", | |
"note":"", |