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 GitHub Release Redirect | |
// @namespace albertopasqualetto | |
// @version 1.1 | |
// @description Redirect from specific GitHub release pages to the main releases page, unless coming from there | |
// @author albertopasqualetto | |
// @match *://github.com/* | |
// @icon https://github.githubassets.com/pinned-octocat.svg | |
// @grant none | |
// @downloadURL https://gist.github.com/albertopasqualetto/4d00d83794d3fff1039cb86680242633/raw/gh_release_redirect.user.js |
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
# Use an official Python runtime as a parent image | |
FROM python:3.12-slim | |
# Copy the current directory contents into the container | |
COPY . . | |
RUN mkdir /origin && mkdir /destination | |
# Install any needed packages specified in requirements.txt | |
RUN pip install --no-cache-dir -r requirements.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
{ | |
"name": "Clean MS To Do completed tasks", | |
"nodes": [ | |
{ | |
"parameters": { | |
"rule": { | |
"interval": [ | |
{ | |
"field": "weeks", | |
"weeksInterval": 2, |
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
{ | |
"name": "Todoist -> MS To Do", | |
"nodes": [ | |
{ | |
"parameters": { | |
"dataType": "string", | |
"value1": "={{ $json[\"body\"][\"event_name\"] }}", | |
"rules": { | |
"rules": [ | |
{ |
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 Reddit remove translation | |
// @namespace albertopasqualetto | |
// @version 1.0.0 | |
// @description Remove translation parameter from Reddit url | |
// @author albertopasqualetto | |
// @match *://sh.reddit.com/* | |
// @match *://*.reddit.com/* | |
// @exclude *://new.reddit.com/* | |
// @exclude *://old.reddit.com/* |
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
# Define the GUIDs for the power schemes | |
$HDMIScheme = "10c2d095-ea2f-46c9-8f8f-ce1e5a2d2e4d" | |
$normalScheme = "381b4222-f694-41f0-9685-ff5bb260df2e" | |
# Function to set the power scheme | |
function Set-PowerScheme { | |
param ( | |
[string]$schemeGuid | |
) | |
powercfg -setactive $schemeGuid |
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
from flask import Flask, send_file | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return send_file('main.pdf') | |
if __name__ == '__main__': | |
app.run(debug=True) |
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
#!/bin/bash | |
# wait-for-grid.sh | |
set -e | |
cmd="$@" | |
sleep 2 | |
while ! curl -sSL "localhost:4444/wd/hub/status" 2>&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
// ==UserScript== | |
// @name Gleam.io Winning Chance | |
// @namespace albertopasqualetto | |
// @version 1.2 | |
// @description lets show the odds of winning | |
// @author Royalgamer06 & albertopasqualetto | |
// @icon http://i.imgur.com/6PuVE2l.png | |
// @match *gleam.io/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.7.1.min.js |
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 Re-enable dragging on sh.reddit | |
// @namespace albertopasqualetto | |
// @version 1.0.5 | |
// @description Re-enable dragging on sh.reddit instead of embed/share button | |
// @author albertopasqualetto | |
// @match *://sh.reddit.com/* | |
// @match *://*.reddit.com/* | |
// @exclude *://new.reddit.com/* | |
// @exclude *://old.reddit.com/* |
NewerOlder