Skip to content

Instantly share code, notes, and snippets.

View jamespo's full-sized avatar
🏠
Working from home

J.P jamespo

🏠
Working from home
View GitHub Profile
{
"FAUXMO": {
"ip_address": "AUTO"
},
"PLUGINS": {
"SimpleHTTPPlugin": {
"DEVICES": [
{
"port": 12340,
"off_cmd": "http://192.168.1.107/admin/api.php?disable=600&auth=YOUR_AUTH_CODE",
@jamespo
jamespo / hello_world.py
Last active August 12, 2021 16:19
Alexa Flask Python Skill using flask-ask-sdk - modification of Amazon "Hello World" Example
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# You'll need a TLS terminating proxy (apache,nginx) in front of this
# This is a simple Hello World Alexa Skill, built using
# the decorators approach in skill builder.
import logging
from flask import Flask
@jamespo
jamespo / footssh.sh
Created April 24, 2022 13:04
Shell function & alias to stop foot terminal confusing ssh
footssh()
{
if [[ $TERM = "foot" ]]; then
TERM=linux ssh $@
else
ssh $@
fi
}
alias ssh=footssh
@jamespo
jamespo / docker-compose.yml
Created August 3, 2022 09:41
docker-compose file for change-detection including playwright
version: '2'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
hostname: changedetection
volumes:
- changedetection-data:/datastore
environment:
@jamespo
jamespo / ibroadcast-uploader.py
Created February 15, 2024 12:44
Patched version of ibroadcast-uploader.py that skips synology @eadir
#!/usr/bin/env python
import requests
import json
import glob
import os
import hashlib
import sys
import traceback