Those are my notes about using the TP-Link Tapo C500 camera in my Linux environment.
More precisely, my Linux system are
- a Debian Testing desktop pc
- a few raspberry pi
- an Asustor NAS that is running a highly customized Linux
| #!/usr/bin/env python3 | |
| # Pure python code to generate WSPR audio tones | |
| # | |
| # Heavily based on https://github.com/PH0TRA/wspr which drove an AD9851 | |
| # I removed that code and replaced it with audio generation using pyaudio | |
| # wsprgen.py CALLSIGN GRID dBPower BASE_AUDIO_FREQUENCY | |
| # genwsprcode from https://github.com/PH0TRA/wspr/blob/master/genwsprcode.py | |
| import genwsprcode as g | |
| import pyaudio |
| all: gifread gifread.asan gifread.ubsan gifread.coverage | |
| gifread: gifdec.c gifread.c gifdec.h | |
| $(CC) $(CFLAGS) -o $@ gifdec.c gifread.c $(LDFLAGS) | |
| gifread.asan: gifdec.c gifread.c gifdec.h | |
| $(CC) $(CFLAGS) -g -fsanitize=address -o $@ gifdec.c gifread.c $(LDFLAGS) | |
| gifread.ubsan: gifdec.c gifread.c gifdec.h | |
| $(CC) $(CFLAGS) -g -fsanitize=undefined -o $@ gifdec.c gifread.c $(LDFLAGS) |
| # Migration script from Pelican to Hugo | |
| import os, re, shutil | |
| from pathlib import Path | |
| INPUT_FOLDER = "content" | |
| OUTPUT_FOLDER = "content-hugo" | |
| # Custom sort key function | |
| def sort_key(path): | |
| # Extract the base filename without the extension |
| # -*- coding: utf-8 -*- | |
| """ | |
| Spyder Editor | |
| @author: thekitchenscientist | |
| """ | |
| # Import streamlit library | |
| import streamlit as st | |
| from llama_cpp import Llama |
In order to be able to build v8 from scratch on Windows for x64, please follow the following steps.
These instructions were updated to work with Windows 11 Build 10.0.22621, but this should also work on WInodws 10
NOTE: While the Chrome team does provide decent documentation, there are some nuances and other additional steps that must be done for v8 to compile on Windows.
Documentation:
| #example from https://pramode.in/2016/10/05/random-bitstream-using-lfsr/ | |
| from migen import * | |
| MAX_PERIOD = 50000 | |
| def new_val(lfsr): | |
| bit = ((lfsr >> 0) ^ \ | |
| (lfsr >> 2) ^ \ | |
| (lfsr >> 3) ^ \ | |
| (lfsr >> 5)) & 1 |
| # Install build prereqs: | |
| sudo apt-get install build-essential libxml2-dev libssl-dev zlib1g-dev | |
| # You can extract a dmg using 7z thus: 7z x File.dmg | |
| # This installs tools like lsbom to see what is inside bom files | |
| git clone https://github.com/hogliux/bomutils && cd bomutils && make && sudo make install | |
| # Now install xar so you can extract the pkg file | |
| curl -OLf https://opensource.apple.com/tarballs/xar/xar-425.2.tar.gz | |
| tar fxv xar-425.2.tar.gz | |
| cd xar-xar-425.2/xar/ | |
| curl -OLf https://raw.githubusercontent.com/macports/macports-ports/master/archivers/xar/files/xar-1.8-openssl-1.1.patch |
| /* | |
| * Copilot cracker for JtR. Hacked together during August of 2021 by | |
| * Brendan Dolan-Gavitt <mooyix at gmail.com> | |
| * | |
| * This software is Copyright (c) 2021, Brendan Dolan-Gavitt <mooyix at gmail.com> | |
| * and it is hereby released to the general public under the following terms: | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted. | |
| * | |
| * Most of the file ripped off from pst_fmt_plug.c by Dhiru Kholia |