Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# fixup_apm_uri.irule | |
# bill church - bill@f5.com | |
# 20180928 - initial release | |
# | |
# If a URI length is equal or greater than 4095 bytes | |
# store in a variable, replace uri temporairly, before | |
# APM and re-inject stored URI after APM | |
# | |
# Optional "URIFixup" header for troubleshooting | |
# and debug can be removed. |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0' | |
const request = require('request') | |
const url = makeurl(4094) | |
request('https://192.168.20.46/' + url, function (error, response, body) { | |
console.log('error:', error) // Print the error if one occurred | |
console.log('statusCode:', response && response.statusCode) // Print the response status code if a response was received | |
console.log('body:', body) // Print the HTML for the Google homepage. |
const http = require('http') | |
const server = http.createServer((req, res) => { | |
let response = `URL(${req.url.length}): ${req.url}\r\nHeaders: ${JSON.stringify(req.headers)}\r\n\r\n` | |
res.end(response) | |
console.log(response) | |
}) | |
server.on('clientError', (err, socket) => { | |
socket.end('HTTP/1.1 400 Bad Request\r\n\r\n') |
const fs = require('fs'), pki = require('node-forge').pki | |
var ca = pki.certificateFromPem(fs.readFileSync('ca.pem', 'ascii')) | |
var client = pki.certificateFromPem(fs.readFileSync('client.pem', 'ascii')) | |
try { | |
if (!ca.verify(client)) throw 'verify failed' | |
} catch (err) { | |
console.log(err) | |
} |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# Carro Home Daisy Smart Fan with replaced ESP-12 wifi chip #1006938428 #318843266 | |
# Store link: https://tinyurl.com/yp44ux4w | |
# Story here: http://1projectaweek.com/blog/2022/2/8/converting-a-carro-home-dc-fan-to-esp-home | |
substitutions: | |
device_name: penfan | |
device_description: Penelope's Ceiling Fan | |
friendly_name: Penelope Fan | |
esphome: |
newbigip.sh | |
#!/bin/bash | |
# This script will: | |
# - Create a 2 core 4096MB BIG-IP virtual machine | |
# - Install the image specified | |
# - Customize the image by loading bootstrap files to /config and | |
# expects: | |
# startup* | |
# .startup-env |
These are my notes setting up rtl_433 docker container on a Proxmox host inside an LXC guest...all the inceptions...
import socket | |
import requests | |
import paramiko | |
import time | |
import xml.etree.ElementTree as ET | |
def discover_sonos_devices(): | |
MCAST_GRP = '239.255.255.250' | |
MCAST_PORT = 1900 | |
msg = ( |