Skip to content

Instantly share code, notes, and snippets.

View barakplasma's full-sized avatar

Michael Salaverry barakplasma

View GitHub Profile
{
"basics": {
"label": "Senior Software Engineer",
"name": "Michael Salaverry",
"profiles": [
{
"network": "Github",
"url": "https://github.com/barakplasma",
"username": "barakplasma"
},
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
{
"basics": {
"name": "Thomas Edison",
"label": "Inventor and Businessman",
"picture": "https://example.com/photo.jpg",
"email": "[email protected]",
"phone": "(123) 456-7890",
"website": "https://thomasedison.com",
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
"location": {
# backup at Z5nYiUJM https://rentry.co/7d98g63q
from playwright.sync_api import sync_playwright
import requests
import schedule
from time import sleep
from datetime import datetime, UTC
from loguru import logger
@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