Skip to content

Instantly share code, notes, and snippets.

@barakplasma
barakplasma / jffs-scripts-exfat
Created February 23, 2024 06:10
AsusWrt scripts
#!/bin/sh
mkdir -p /mnt/fourtera
DISK=$(fdisk -l | grep 2047 | cut -d " " -f2 | sed "s/:/2/")
logger $DISK
mount.exfat-fuse $DISK /mnt/fourtera
// ==UserScript==
// @name Text-To-Speech Toggle
// @namespace http://tampermonkey.net/
// @version 0.4
// @description text to speech for qireader articles with toggle button
// @author Michael Salaverry
// @match https://www.qireader.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=qireader.com
// @grant none
// ==/UserScript==
@barakplasma
barakplasma / script.js
Last active March 20, 2024 18:30
Display if KSP items in category are available nearby (on context menu right click)
// ==UserScript==
// @name Show in stock on KSP
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://ksp.co.il/web/cat/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=co.il
// @grant GM.xmlHttpRequest
// @connect ksp.co.il
@barakplasma
barakplasma / Dockerfile
Last active December 13, 2022 10:38
How to read docker-compose secrets file as environment variables from unadapted image
FROM busybox
CMD [ "sh", "/run/secrets/my_secret" ]
classDiagram
direction RL
Tasmota --> MqttBroker: Tasmota publishes sensor readings to broker
class Tasmota{
publish()
}
class MqttBroker {
message_queue
}
Mqttjs --> Chartjs: onRecieve pushes new data and updates Chart
@barakplasma
barakplasma / TesseractWebcamOCR.md
Last active March 8, 2021 17:07
Tesseract OCR from Webcam

Tesseract.js based OCR from Webcam

const axios = require('axios').default;
let callCounter = {};
const displayCalls = () => {
console.log(callCounter);
};
function makeInterceptor(keyName, returns) {
callCounter[keyName] = 0;
return (r) => {
callCounter[keyName]++;