Skip to content

Instantly share code, notes, and snippets.

View KevinPayravi's full-sized avatar

Kevin Payravi KevinPayravi

View GitHub Profile
[
{"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
}
@KevinPayravi
KevinPayravi / keybase.md
Created April 17, 2015 21:03
Keybase identity proof

Keybase proof

I hereby claim:

  • I am KevinPayravi on github.
  • I am kevinpayravi (https://keybase.io/kevinpayravi) on keybase.
  • I have a public key whose fingerprint is FFA4 54E5 2C80 B519 F7B7 3EC5 A279 B2E6 8E5C 2BB1

To claim this, I am signing this object: