Skip to content

Instantly share code, notes, and snippets.

View Mte90's full-sized avatar
🎯
Creating new open source stuff that you will like

Daniele Scasciafratte Mte90

🎯
Creating new open source stuff that you will like
View GitHub Profile
@Mte90
Mte90 / rss.opml
Last active October 17, 2025 18:25
My RSS feed
<?xml version="1.0" encoding="UTF-8"?>
<opml xmlns:frss="https://freshrss.org/opml" version="2.0">
<head>
<title>FreshRSS</title>
<dateCreated>Tue, 06 May 2025 09:48:51 +0000</dateCreated>
</head>
<body>
<outline text="Altro">
<outline text="FuturoProssimo" type="rss" xmlUrl="https://www.futuroprossimo.it/feed/" htmlUrl="https://www.futuroprossimo.it/" description="Notizie che anticipano il mondo di domani"/>
<outline text="GamerPower Giveaways - Steam" type="rss" xmlUrl="https://www.gamerpower.com/rss/steam" htmlUrl="https://www.gamerpower.com/" description="Find, Track and collect the best giveaways in gaming!"/>
@Mte90
Mte90 / gist:09b7de1ad7cdaf7e7c233561f6f3c3ea
Created October 15, 2025 08:23
steam-multiplayer-games.py
#!/usr/bin/env python3
# Print a list of your steam games that are playable locally with more people
import requests
import json
import time
import html
import re
import lxml.etree as etree
# Replace with your own Steam API key and Steam ID
@Mte90
Mte90 / browser-console.js
Last active June 13, 2025 13:56
Bulk move posts with various tag to a category with WP-CLI
// To run in the browser console to get the list of ids to copy and paste to the shell script
function extractIdsFromTable() {
const rows = document.querySelectorAll('tr');
let idValues = [];
rows.forEach((row) => {
const idCell = row.querySelector('td.term_id');
if (idCell) {
@Mte90
Mte90 / CMakeLists.txt
Created April 2, 2025 08:46
QtKeyLogger
cmake_minimum_required(VERSION 3.16)
project(QtKeyLogger LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets)
qt_standard_project_setup()
@Mte90
Mte90 / shellcheck-stdlib-tests.ab
Created August 6, 2024 10:04
Shellcheck all the stdlib tests
import { split, contains } from "std/text"
import { file_write, file_append, dir_exist, file_exist, create_dir } from "std/fs"
let path = "/tmp/amber-sc-tests"
if (not dir_exist(path)) {
create_dir(path)
}
let report = "{path}/report.txt"
@Mte90
Mte90 / freemius-to-slack.php
Last active June 26, 2024 17:52
Freemius to slack notification
<?php
// Get Freemius data
$json = file_get_contents('php://input');
$data = json_decode($json, true);
if( isset( $data['objects'] ) ) {
slack($data);
}
function slack($data) {
@Mte90
Mte90 / gitlab-ci.yml
Last active April 24, 2023 09:46
GitLab CI version for WPBP
image: jakzal/phpqa:alpine
cache:
paths:
- vendor/
stages:
- Code Quality
coding-standards:
@Mte90
Mte90 / calcolo-tasse-bustepaghe.py
Last active March 7, 2023 10:14
Calcolo buste paghe da PDF generati da Zucchetti
#!/usr/bin/env python3
from io import StringIO
from pdfminer.converter import TextConverter
from pdfminer.layout import LAParams
from pdfminer.pdfdocument import PDFDocument
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter
from pdfminer.pdfpage import PDFPage
from pdfminer.pdfparser import PDFParser
import sys
import os
@Mte90
Mte90 / WebSerial API test
Last active November 21, 2022 12:47
Firefox WebSerial API Test
Download from https://bugzilla.mozilla.org/show_bug.cgi?id=926940 the development build with the WebSerial API
Screenshot: https://plus.google.com/u/0/+DanieleScasciafratteMte90Net/posts/EED6sbEt2zv
@Mte90
Mte90 / dashboard-activity-cpt.php
Created September 18, 2015 11:27
Add your cpts to the Widget Activity of the Dashboard in WordPress
<?php
/*
Plugin Name: Dashboard Widget Activity Custom Post Type
Plugin URI:
Description:
Author: Daniele Mte90 Scasciafratte
Version: 1.0.0
Author URI: http://mte90.net
*/