#Base URL
http://192.168.1.254
GET / file management panel
all options follow the template:
/?custom=1&cmd={Command}&par={Option}
Command - setting/mode of the device
#include <IRremote.h> | |
// http://www.pjrc.com/teensy/td_libs_IRremote.html | |
// If one keypress results in multiple codes being output, then | |
// change in IRremoteInt.h: | |
// #define _GAP 50000 | |
int RECV_PIN = 8; | |
IRrecv irrecv(RECV_PIN); | |
decode_results results; |
#!/usr/bin/env python | |
# A simple script to suck up HTML, convert any images to inline Base64 | |
# encoded format and write out the converted file. | |
# | |
# Usage: python standalone_html.py <input_file.html> <output_file.html> | |
# | |
# TODO: Consider MHTML format: https://en.wikipedia.org/wiki/MHTML | |
import os | |
from bs4 import BeautifulSoup |
Method taken from https://github.com/pimusicbox/pimusicbox
Assuming mopidy and Iris etc are already installed, we need to install mpc, so that we can stop playback on mopidy when we use spotify connect
sudo apt-get install mpc
Then we install the easiest librespot spotify connect system
Work-in-pogress
Ref: cloudflare/homebrew-cloudflare#21
# Clean up any old version of curl you may have already tried to install
brew remove -f curl
# Download the curl ruby install script provided by cloudflare
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'
# Clone llama.cpp | |
git clone https://github.com/ggerganov/llama.cpp.git | |
cd llama.cpp | |
# Build it | |
make clean | |
LLAMA_METAL=1 make | |
# Download model | |
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
# Quick script to repair broken epub | |
# Need libmagic and python-magic to work | |
# Use case: | |
import argparse | |
import sys | |
from pathlib import Path | |
from typing import List | |
from zipfile import ZIP_DEFLATED, ZIP_STORED, ZipFile |