Skip to content

Instantly share code, notes, and snippets.

View KevinPayravi's full-sized avatar

Kevin Payravi KevinPayravi

View GitHub Profile
import time
import logging
import pandas as pd
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from bs4 import BeautifulSoup
logging.basicConfig(
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35359
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/34815
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/34816
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35145
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35143
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35139
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35152
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35358
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35280
https://aaas.confex.com/aaas/2025/meetingapp.cgi/Session/35136
[
{"owner_name": "PussTheCat.org", "owner_website": "https://pussthecat.org", "instance": "https://breezewiki.pussthecat.org"},
{"owner_name": "~vern", "owner_website": "https://vern.cc", "instance": "https://bw.vern.cc"},
{"owner_name": "Esmail", "owner_website": "https://en.esmailelbob.xyz", "instance": "https://breezewiki.esmailelbob.xyz"},
{"owner_name": "Artemis", "owner_website": "https://artemislena.eu", "instance": "https://bw.artemislena.eu"}
]
@KevinPayravi
KevinPayravi / get-wiki-tweets.js
Last active November 18, 2022 09:45
A console script that can be run on a MediaWiki wiki to extract all tweets linked in the mainspace.
/*
A console script that can be run on a MediaWiki wiki to extract all tweets linked in the mainspace.
To run this: visit a MediaWiki wiki, open your browser's developer console, paste this code in, and press enter.
It will print and re-print a growing array of Tweets until it is done searching.
How does this janky script work?
It first searches MediaWiki for all pages that contain the text "twitter".
Trying to search for URLs (i.e. twitter.com) is unreliable depending on a wiki's search infrastructure.
This script then grabs the wikitext from all these pages and uses regex to search for any Tweet URLs.
@KevinPayravi
KevinPayravi / logwatcher.sh
Created February 27, 2021 22:50 — forked from waggz81/logwatcher.sh
Valheim Server Discord Alerts
#!/bin/bash
##########################
# Change these variables #
##########################
FILE="/path/to/console.log"
WEBHOOK_URL="CHANGEME"
STEAMKEY="CHANGEME"
##########################
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
{
"COMMON": {
"YES": "Yes",
"NO": "No",
"OR": "or",
"LOADING": "Loading...",
"DATE": "DD MMM YYYY",
"DATETIME": "DD MMM YYYY HH:mm",
"SAVE": "Save",
"CANCEL": "Cancel",
/* This file has been modified from its original version by Kevin Payravi */
@charset "UTF-8";
.introjs-helperLayer,.introjs-overlay{
-webkit-transition:all .3s ease-out;
-moz-transition:all .3s ease-out;
-ms-transition:all .3s ease-out;
-o-transition:all .3s ease-out;
box-sizing:content-box
}