- Install python
- Install pip
- Install virtualenv
- Install virtualenvwrapper
- Install
git
(server) through DSM Package Manager - Install
perl
through DSM Package Manager - Install
exiftool
through CPHub (https://www.cphub.net/?id=40&pid=609) - Clone elodie from Github (https://github.com/jmathai/elodie)
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
# Title: Smart-TV Blocklist for Pi-hole | |
# Version: 15December2021v1 | |
# Description: This is a blocklist to block smart-TVs sending metadata back home, sometimes with the added benefit of blocking interface ads for apps and movie services. | |
# Please help with collecting domains! | |
# It could occur that the TV fails to receive new updates, or that other apps or services no longer work. Please report such an incident. | |
# Make sure to also use the extra RegEx list at https://perflyst.github.io/PiHoleBlocklist/regex.list, which helps remove regional LG ad domains among other things. | |
# Panasonic Viera & panny tv | |
0077777700140002.myhomescreen.tv | |
cert-test.sandbox.google.com |
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
const HomeAssistant = require( 'homeassistant' ); | |
const Pino = require( 'pino' ); | |
const config = require( 'config' ); | |
const hass = new HomeAssistant( config.get( 'home_assistant' ) ); | |
const imessage = require( 'osa-imessage' ); | |
const logger = Pino(); | |
// TODO package this better | |
const bridge = { |
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 Joule is a serverless dynamic DNS system using Lambda and Route53. | |
*/ | |
// We have to require the aws-sdk and immediately set the credentials. | |
// If we instantiate the Route53 object first then it assumes the role assigned to the lambda function. | |
var AWS = require('aws-sdk'); | |
if(process.env.AWS_KEY !== '' && process.env.AWS_SECRET !== '') { | |
AWS.config.update({accessKeyId: process.env.AWS_KEY, secretAccessKey: process.env.AWS_SECRET}); | |
} |
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
# username = your Joule username | |
# joule_name = the name of your Joule (probably joule-node-dynamic-dns) | |
# test.example.com. = the domain you'd like to use for DDNS (with a trailing .) | |
# a_secret_you_chose = the string you chose as your secret for your Joule | |
./client.sh username joule_name test.example.com. a_secret_you_chose | |
# Output if IP address hasn't changed | |
# {"status": "success", "message": "No change in IP address detected."} | |
# |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1458757563000", | |
"Effect": "Allow", | |
"Action": [ | |
"route53:ChangeResourceRecordSets", | |
"route53:ListHostedZones" | |
], |
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
git clone https://github.com/joulehq/joule-node-boilerplate.git | |
cd joule-node-boilerplate/src | |
cp events.json-sample events.json | |
npm i | |
npm test | |
> [email protected] test /Users/jaisenmathai/joule-node-boilerplate/src | |
> node ./node_modules/joule-node-local/index.js | |
{ headers: { Status: '200 OK', 'Content-Type': 'application/json' }, |
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 Response = require('joule-node-response'); | |
var JouleNodeDatabase = require('joule-node-database'); | |
exports.handler = function(event, context) { | |
var response = new Response(); | |
var database = new JouleNodeDatabase(); | |
database.get('hasInvite') | |
.done(function(data) { | |
if(typeof(data.hasInvite) === 'undefined' || data.hasInvite !== true) { |
I hereby claim:
- I am jmathai on github.
- I am jaisenmathai (https://keybase.io/jaisenmathai) on keybase.
- I have a public key whose fingerprint is E411 DF2B 1504 2E6F 97E9 3A35 0E43 CAEB 9251 6011
To claim this, I am signing this object:
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 response = require('joule-node-response'); | |
var client = require('twilio')(); | |
exports.handler = function(event, context) { | |
client.messages.create({ | |
body: event.body, | |
to: event.to, | |
from: process.env.from | |
}, function(err, message) { | |
if(message && message.sid) { |
NewerOlder