This file contains 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 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 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 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 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
$TAB = "`t" | |
# ****** BACKUP OF ONENOTE TO GOOGLE DRIVE USING RCLONE ****** | |
Write-Host "****** RClone OneNote backup on Google Drive ******" | |
# ****** BACKUP TO UNI DRIVE ****** | |
Write-Host "Backup on Uni Drive..." | |
Write-Host "$TAB Upload..." | |
rclone copy "C:\Users\alber\AppData\Local\Microsoft\OneNote\16.0\Backup\Primo Semestre - Quarto anno" "GDrive Uni:_Backup OneNote/Primo Semestre - Quarto anno" | |
rclone copy "C:\Users\alber\AppData\Local\Microsoft\OneNote\16.0\Backup\Secondo Semestre - Quarto anno" "GDrive Uni:_Backup OneNote/Secondo Semestre - Quarto anno" |
This file contains 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 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 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 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 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