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 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 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/* |
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
# Author: Alberto Pasqualetto | |
# This code is licensed under MIT license | |
# | |
# Create a pdf for each html file exported by Notion in the current directory | |
# and merge them in one pdf if required with -m or --merge | |
# if only the merge of files in './pdfs' is required use -M or --only-merge | |
# | |
# Note: export html files from Notion including subpages but not creating folders for them | |
import sys |
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
{ | |
"basics": { | |
"name": "Alberto Pasqualetto", | |
"label": "Student at University of Padua", | |
"image": "https://avatars.githubusercontent.com/u/39854348?v=4", | |
"summary": "", | |
"profiles": [ | |
{ | |
"network": "gitconnected", | |
"username": "albertopasqualetto", |
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
@echo off | |
:: Source: https://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file | |
:: Source: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights | |
:: batch code to request admin previleges, if no admin previleges | |
fltmc >nul 2>&1 | |
if NOT %errorLevel% == 0 ( | |
powershell start -verb runas '%0' am_admin & exit /b | |
) |
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
/** @OnlyCurrentDoc */ | |
function copyMyConditionalFormatting() { | |
var spreadsheet = SpreadsheetApp.getActive(); | |
var base_range = spreadsheet.getRange("B2:X2"); //Starting range | |
var conditionalFormatRules = spreadsheet.getActiveSheet().getConditionalFormatRules(); | |
for (var i=1; i<=1001-3; i++){ //Which columns | |
var new_rule = conditionalFormatRules[0].copy //Copy first rule to all sheet | |
.setRanges([base_range.offset(i, 0)]) //column offset | |
.build(); |
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
//FILL THIS LIST AND ADD 1 (OR MORE) TRIGGERS TO SEND | |
// This is the list of mails to send; add a new line for each email to send daily. | |
// 'recipient' needs to be specified; 'subject' and 'body' are not needed. | |
const listToSend = new Set([ | |
{recipient:"recipient@example.com", subject:"subject0", body:"body0"}, | |
{recipient:"recipient@example.com", subject:"subject1", body:"body1"}, | |
{recipient:"recipient@example.com", subject:"subject2", body:"body2"} | |
]); |
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
@echo off | |
:: Source: https://stackoverflow.com/questions/1894967/how-to-request-administrator-access-inside-a-batch-file | |
:: Source: https://stackoverflow.com/questions/4051883/batch-script-how-to-check-for-admin-rights | |
:: batch code to request admin previleges, if no admin previleges | |
fltmc >nul 2>&1 | |
if NOT %errorLevel% == 0 ( | |
powershell start -verb runas '%0' am_admin & exit /b | |
) |
NewerOlder