This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{ | |
fs::File, | |
io::Cursor, | |
os::fd::{FromRawFd, IntoRawFd, OwnedFd}, | |
sync::{Arc, Mutex}, | |
}; | |
use ashpd::desktop::{ | |
screencast::{CursorMode, Screencast, SourceType, Stream as AshStream}, | |
PersistMode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make this false if need to remove named contacts | |
const REMOVE_NAMES = true; | |
let numbers = document.querySelector("#main > header > div:nth-child(2) > div:nth-child(2) > span").title.split(",").map(e => e.trim()); | |
if (REMOVE_NAMES) { | |
numbers = numbers.filter(name => name.startsWith("+")); | |
} | |
console.log(numbers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Display all network interfaces' IP address on an I2C OLED screen connected over GPIO (mainly for a raspberry pi) """ | |
import socket | |
import time | |
from PIL import Image | |
from PIL import ImageDraw | |
from PIL import ImageFont | |
import Adafruit_GPIO.SPI as SPI |