Using React and XState.
// A vertically sliced "MVC-widget"
// VIEW:
export default function Users() {
Below are single-line commands to run in BASH on a Raspberry Pi to rewrite the toner chips to "full" for a Ricoh SP C250DN Printer. | |
You will need to have the 4 files below in the same directory: "black" "cyan" "magenta" and "yellow". | |
The chip is near one edge of the cartridge. The pad closest to the edge is GND, followed by VCC, DATA, and Clock. | |
On the Pi, connect VCC and GND to +3.3V and GND. Connect Data to (physical numbering) 3 and 5. They are the I2C Data and Clock pins. | |
Be sure i2c is enabled and installed. | |
modprobe -r i2c_bcm2708 ;modprobe i2c_bcm2708 baudrate=9600 | |
<?php | |
$domain = $_GET['domain']; | |
$w = new DomainAge(); | |
echo $w->age($domain); | |
class DomainAge | |
{ | |
private $WHOIS_SERVERS = array( | |
"com" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), | |
"net" => array("whois.verisign-grs.com", "/Creation Date:(.*)/"), |
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
It may be necessary at times to modify umask settings in order to allow for shared file access. | |
This sets the umask to 0022, but other variants are also possible, assuming it is a value unix umask value. | |
# sudo launchctl config user umask 022 |
#!/bin/bash | |
# Config | |
WINDOW_TITLE="Minecraft Server" | |
ONLINE_AUTH=true | |
RAM_INITIAL=512M | |
RAM_MAX=4G | |
RESTART_DELAY=10 | |
################################################################################ |
The sony bravia has a HTTP API interacted with using a Pre-Shared key. There's a more complex auth flow but I've not described it here.
There wasn't any documentation, so I've written some. If you're a TV integrator don't read this, you'll laugh. I'm probably just getting confused by UPnP.
Disclaimer: I've only tested this on my TV, which is a KDL-50W829B. Your TV might not have all of the services; see Available services section for how to discover what your TV supports.