This file contains hidden or 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
| #!/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 |
This file contains hidden or 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
| // 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) { |
This file contains hidden or 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
| 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() |
This file contains hidden or 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
| 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" |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| from random import random, randint, choice, shuffle | |
| import discord | |
| from discord.ext import tasks | |
| TOKEN = 'pensavichelomettessianchequavero?' | |
| file = open('insulti.txt', 'r') |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Hide Youtube video from Reddit | |
| // @namespace Mte90 | |
| // @match https://reddit.com/* | |
| // @match https://www.reddit.com/* | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description As per title | |
| // ==/UserScript== |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import yaml | |
| with open('trivia.txt', mode="r", encoding="latin-1") as f: | |
| lines = f.readlines() | |
| questions = {} | |
| count = 0 | |
| for line in lines: | |
| count += 1 |
This file contains hidden or 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
| #!/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 |
This file contains hidden or 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
| <?php | |
| // This script require to be added in the Webhook section of you repo | |
| // It will download the repository defined in the url in the path defined in the url | |
| // For safety reasons is required a token in the url and will check the repo owner | |
| // Note GitHub/GitLab generate zip files with a folder on it so it isn't enough to decomrpess them | |
| // You need to get that content and a temporary folder is required to mvoe those files | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); |
This file contains hidden or 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
| <?php | |
| /** | |
| * Plugin Name: WooCommerce Colonna IVA | |
| * Description: Aggiunge una colonna nei prodotti WooCommerce | |
| * Version: 1.0.0 | |
| * Author: LUGRieti | |
| * Author URI: | |
| * Requires at least: 4.9 | |
| * Tested up to: 4.9 | |
| * |
NewerOlder